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); }
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); }