Esempio n. 1
0
    public void restartGameMethod()
    {
        Time.timeScale = 1;
        int GL = 1;

        PlayerPrefs.SetInt("gameLoop", GL);
        //SceneManager.LoadScene("mainScene");
        isFadeStarted = true;
        soundManagerScript.playClickSound();
    }
Esempio n. 2
0
    public void startGameButton()
    {
        soundManager soundManagerScript = GetComponent <soundManager>();

        if (IsGameStarted == false)
        {
            if (PlayerPrefs.GetInt("gameLoop") == 0)
            {
                soundManagerScript.playClickSound();
            }
            PlayerPrefs.SetInt("gameLoop", 1);
            startGame();
            IsGameStarted = true;
        }
    }