示例#1
0
        protected override void OnEnter(IFsm <ActorBase> fsm)
        {
            base.OnEnter(fsm);
            FrostCommand ev = m_Command as FrostCommand;

            if (ev.LastTime > 0)
            {
                GameEntry.Timer.Register(ev.LastTime, Break);
            }
            m_Owner.ApplyRootMotion(false);
            m_Owner.ApplyAnimator(false);
        }
示例#2
0
        //冰冻
        protected virtual CommandReplyType CheckFrost(FrostCommand cmd)
        {
            if (CannotControlSelf())
            {
                return(CommandReplyType.NO);
            }
            if (GetActorState(ActorStateType.IsDivine) == true)
            {
                return(CommandReplyType.NO);
            }
            m_ActorSkill.Clear();

            ChangeState <ActorFrostFsm>(cmd);
            return(CommandReplyType.YES);
        }