Пример #1
0
 public void Execute(IAction action)
 {
     if (action.IsValid(this))
     {
         action.Apply(this);
     }
 }
Пример #2
0
 public void ApplyCurrentAction()
 {
     currentAction.Apply(this);
     currentAction = null;
 }