public override void Action(BaseFSM fsm) { //盯住玩家 TransformHelper.LookAtTarget(fsm.targetPlayer.position - fsm.transform.position, fsm.transform, fsm.RotationSpeed); if (attackTime <= 0) { attackTime = fsm.chStatus.attackSpeed; fsm.PlayeAnimation(fsm.animParams.Attack); fsm.RandomAttack(); } attackTime -= Time.deltaTime; }