Пример #1
0
        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);
        }
Пример #2
0
        //昏迷
        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);
        }