Exemple #1
0
    //poziva se pri pocetku nove igre
    public void GameStart()
    {
        theAudioController.PlayGameMusic();

        Time.timeScale = 1;
        Status         = GameStatus.NULL;

        theDropArranger.OnGameEnd();
        theScoreManager.OnGameEnd();

        pauseMenu.SetActive(false);
        gameOverMenu.SetActive(false);
        notInPlayModeUI.SetActive(false);
        playModeUI.SetActive(true);

        theScoreManager.ResetAllButHighscore();

        SetTargetColor();

        TimeLeft = 30;
        colorPick.GetComponent <Animation>().Stop();
        colorPick.GetComponent <Animation>().Play();

        Invoke("SetStatus_IN_GAME", 3);
    }