Пример #1
0
    public void HardDifficulty()
    {
        //Storing data in GamePeferences!!
        GamePeferences.SetEasyDifficulty(0);
        GamePeferences.SetMediuDifficulty(0);
        GamePeferences.SetHardDifficulty(1);

        easySign.SetActive(false);
        mediumSign.SetActive(false);
        hardSign.SetActive(true);
    }
Пример #2
0
    private void InitializeGamePref()
    {
        if (!PlayerPrefs.HasKey("DRH Game Init 1"))
        {
            GamePeferences.SetEasyDifficulty(0);
            GamePeferences.SetEasyDiffScore(0);
            GamePeferences.SetEasyDiffCoinScore(0);
            //Default
            GamePeferences.SetMediuDifficulty(1); // true
            GamePeferences.SetMediumDiffScore(0);
            GamePeferences.SetMediumDiffCoinScore(0);

            GamePeferences.SetHardDifficulty(0);
            GamePeferences.SetHardDiffScore(0);
            GamePeferences.SetHardDiffCoinScore(0);

            GamePeferences.SetMusic(1); //on

            //Il pacalim prin salvaea de cheie
            PlayerPrefs.SetInt("DRH Game Init 1", 1);
        }
    }