示例#1
0
    public Boss0Move(AdvanceFSM afsm, Transform[] pints)
    {
        fsm       = afsm;
        wayPoints = pints;
        animator  = afsm.GetAnimator;
        actionID  = (int)Boss0Controller.FSMActionID.Move;

        FindNextPoint();
    }
示例#2
0
    public Attack(Transform[] wp, AdvanceFSM afsm)
    {
        fsm = afsm;

        wayPoints   = wp;
        actionID    = (int)AIController.FSMActionID.Attacking;
        curRotSpeed = 12;
        curSpeed    = 100;

        FindNextPoint();//指定攻击对象
    }
示例#3
0
    public Chase(Transform[] wp, AdvanceFSM afsm)
    {
        fsm = afsm;

        wayPoints   = wp;
        actionID    = (int)AIController.FSMActionID.Chasing;
        curRotSpeed = 6;
        curSpeed    = 160;

        FindNextPoint();//追逐的目标
    }
示例#4
0
    /// <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();
    }
示例#6
0
 public Boss0FireBall(AdvanceFSM afsm)
 {
     fsm      = afsm;
     animator = afsm.GetAnimator;
     actionID = (int)Boss0Controller.FSMActionID.Fist;
 }
示例#7
0
 public Boss0OverHot(AdvanceFSM afsm)
 {
     fsm      = afsm;
     animator = afsm.GetAnimator;
     actionID = (int)Boss0Controller.FSMActionID.OverHot;
 }
示例#8
0
 public Boss0Dead(AdvanceFSM afsm)
 {
     fsm      = afsm;
     animator = afsm.GetAnimator;
     actionID = (int)Boss0Controller.FSMActionID.Dead;
 }
示例#9
0
 public MonsterAttack(AdvanceFSM afsm)
 {
     fsm      = afsm;
     animator = afsm.GetAnimator;
     actionID = (int)MonsterController.FSMActionID.Attack;
 }
示例#10
0
 public MonsterChase(AdvanceFSM afsm)
 {
     fsm      = afsm;
     animator = afsm.GetAnimator;
     actionID = (int)MonsterController.FSMActionID.Chase;
 }
示例#11
0
 public Boss0Provoke(AdvanceFSM afsm)
 {
     fsm      = afsm;
     animator = afsm.GetAnimator;
     actionID = (int)Boss0Controller.FSMActionID.Provoke;
 }