protected override void OnEnter(IFsm <ActorBase> fsm) { base.OnEnter(fsm); m_Owner.ApplyRootMotion(false); StunCommand cmd = m_Command as StunCommand; m_Owner.OnStun(cmd.LastTime); }
//昏迷 protected virtual CommandReplyType CheckStun(StunCommand cmd) { if (CannotControlSelf()) { return(CommandReplyType.NO); } if (GetActorState(ActorStateType.IsDivine)) { return(CommandReplyType.NO); } m_ActorSkill.Clear(); ChangeState <ActorStunFsm>(cmd); return(CommandReplyType.YES); }