public Boss0Move(AdvanceFSM afsm, Transform[] pints) { fsm = afsm; wayPoints = pints; animator = afsm.GetAnimator; actionID = (int)Boss0Controller.FSMActionID.Move; FindNextPoint(); }
public Attack(Transform[] wp, AdvanceFSM afsm) { fsm = afsm; wayPoints = wp; actionID = (int)AIController.FSMActionID.Attacking; curRotSpeed = 12; curSpeed = 100; FindNextPoint();//指定攻击对象 }
public Chase(Transform[] wp, AdvanceFSM afsm) { fsm = afsm; wayPoints = wp; actionID = (int)AIController.FSMActionID.Chasing; curRotSpeed = 6; curSpeed = 160; FindNextPoint();//追逐的目标 }
/// <summary> /// 初始化 /// </summary> public Patrol(Transform[] wp, AdvanceFSM afsm) { fsm = afsm; wayPoints = wp; actionID = (int)AIController.FSMActionID.Patroling; curRotSpeed = 6; curSpeed = 80; destPos = wayPoints[0].transform.position; }
public void EnterWorld() { propertyManager = new PropertyManager(); sfxManager = new SfxManager(this); sfxHandler = this.gameObject.AddComponent <SfxHandler>(); if (this is EntityMyself) { skillManager = new PlayerSkillManager(this); } else { skillManager = new SkillManager(this); } fsm = new AdvanceFSM(this); ConstructFSM(); OnEnterWorld(); }
public Boss0FireBall(AdvanceFSM afsm) { fsm = afsm; animator = afsm.GetAnimator; actionID = (int)Boss0Controller.FSMActionID.Fist; }
public Boss0OverHot(AdvanceFSM afsm) { fsm = afsm; animator = afsm.GetAnimator; actionID = (int)Boss0Controller.FSMActionID.OverHot; }
public Boss0Dead(AdvanceFSM afsm) { fsm = afsm; animator = afsm.GetAnimator; actionID = (int)Boss0Controller.FSMActionID.Dead; }
public MonsterAttack(AdvanceFSM afsm) { fsm = afsm; animator = afsm.GetAnimator; actionID = (int)MonsterController.FSMActionID.Attack; }
public MonsterChase(AdvanceFSM afsm) { fsm = afsm; animator = afsm.GetAnimator; actionID = (int)MonsterController.FSMActionID.Chase; }
public Boss0Provoke(AdvanceFSM afsm) { fsm = afsm; animator = afsm.GetAnimator; actionID = (int)Boss0Controller.FSMActionID.Provoke; }