示例#1
0
    public void startNewGameDialog()
    {
        UnityAction yesAction = new UnityAction(() => { BoardHandler.Instance().reset();
                                                        BattleInfo.Instance().resetStats();
                                                        BattleInfo.gameState = GameState.PlayerTurn; });
        UnityAction noAction = new UnityAction(() => { BattleInfo.gameState = GameState.Exiting;
                                                       Application.Quit(); });

        dialogBox.Choice("Would you like to battle again?", yesAction, noAction);
    }