Exemplo n.º 1
0
        public override void Action(BaseFSM fsm)
        {
            if (fsm.targetObject != null)
            {
                fsm.transform.LookAt(fsm.targetObject.transform);
            }

            if (nextAttackTime <= Time.time)
            {
                fsm.UseSkill(); nextAttackTime = Time.time + fsm.chStatus.chBase.attackSpeed;
            }
        }