Пример #1
0
 public static void GoToPostBattle()
 {
     if (_state != Battle)
         throw new GameImplementationException("Cannot go to Post-Battle state except from Battle state");
     PostBattle = new PostBattleState(Battle);
     SwitchState(PostBattle);
 }
Пример #2
0
 public static void GoToPostBattle()
 {
     if (_state != Battle)
     {
         throw new GameImplementationException("Cannot go to Post-Battle state except from Battle state");
     }
     PostBattle = new PostBattleState(Battle);
     SwitchState(PostBattle);
 }