Esempio n. 1
0
        public override void Action(BaseFSM basefsm)
        {
            if (attackTime > basefsm.chState.attackSpeed)
            {
                //播放攻击动画


                basefsm.AutoUseSkill();
                attackTime = 0;
            }
            attackTime = attackTime + Time.deltaTime;
            basefsm.transform.LookAt(basefsm.targetObj);

            basefsm.transform.localEulerAngles -= new Vector3(basefsm.transform.rotation.x, 0, 0);


            basefsm.transform.localEulerAngles -= new Vector3(0, 0, basefsm.transform.rotation.z);
        }