private void ShowWork(object sender, System.Windows.RoutedEventArgs e)
        {
            ICommand command = new FlyCommand();

            command.Execute(ExampleBlock);
            command = new JumpCommand();
            command.Execute(ExampleBlock);
        }
示例#2
0
 //浮空
 protected virtual CommandReplyType CheckFly(FlyCommand cmd)
 {
     if (CannotControlSelf())
     {
         return(CommandReplyType.NO);
     }
     if (GetActorState(ActorStateType.IsDivine))
     {
         return(CommandReplyType.NO);
     }
     m_ActorSkill.Clear();
     ChangeState <ActorFlyFsm>();
     return(CommandReplyType.YES);
 }