Beispiel #1
0
    public void ShowHighScore()
    {
        panelMainMenu.SetActive(false);
        panelHighScore.SetActive(true);

        gm.ClearMap();
        SimpleText.getInstance().SetDisplayText(strHighScore);

        m_gameState = GameState.HighScore;
    }
Beispiel #2
0
    public void NewMatch()
    {
        panelCountdown.gameObject.SetActive(true);
        panelCountdown.StartCountDown(timeToNewMatch);
        gm.ClearMap();
        SimpleText.getInstance().SetDisplayText("" + scorePlayers [0] + " : " + scorePlayers [1]);

        if (players [0] != null)
        {
            Destroy(players [0]);
        }
        if (players [1] != null)
        {
            Destroy(players [1]);
        }

        timer = timeToNewMatch;
    }