示例#1
0
    public void hardDifficulty()
    {
        GamePrefences.SetEasyDifficultyState(0);
        GamePrefences.SetMediumDifficultyState(0);
        GamePrefences.SetHardDifficultyState(1);

        EasySign.SetActive(false);
        MediumSign.SetActive(false);
        HardSign.SetActive(true);
    }
示例#2
0
    void InitializeVariable()
    {
        if (!PlayerPrefs.HasKey("Game Initialized"))
        {
            GamePrefences.SetEasyDifficultyState(0);
            GamePrefences.SetHardDifficultyCoinScore(0);
            GamePrefences.SetEasyDifficultyHighscore(0);

            GamePrefences.SetMediumDifficultyState(1);
            GamePrefences.SetMediumDifficultyCoinScore(0);
            GamePrefences.SetMediumDifficultyHighscore(0);

            GamePrefences.SetHardDifficultyState(1);
            GamePrefences.SetHardDifficultyCoinScore(0);
            GamePrefences.SetHardDifficultyCoinScore(0);

            GamePrefences.SetMusicState(0);

            PlayerPrefs.SetInt("Game Initialized", 123);
        }
    }