Ejemplo n.º 1
0
    public static void ShowTheDialogWindowAfterGame(bool isWon, bool isCanTalkAfter)
    {
        ShowTheDialogInterface();
        Counter++;

        string name       = null;
        string dialogText = null;

        if (isWon && Counter == 1)
        {
            name        = "You won!";
            dialogText  = "Congratulations! You received ";
            dialogText += ArenaInfo.RandomAward(1, 4, true);
            dialogText += " gold";
        }

        if (!isWon)
        {
            name       = "You lose!";
            dialogText = "Too bad!";
        }

        SetDialogInterface(name, dialogText);

        //exit
        if (Counter == 2)
        {
            if (isCanTalkAfter == true)
            {
                MainHero.IsCanTalk = true;
            }
            else
            {
                MainHero.IsCanTalk = false;
            }
            Counter = 0;
            HideTheDialogInterface();
            ArenaInfo.AfterGame = 0;
        }
    }