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

            command.Execute(ExampleBlock);
            command = new JumpCommand();
            command.Execute(ExampleBlock);
        }
Ejemplo n.º 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);
 }