コード例 #1
0
    public void HardDifficulty()
    {
        GamePrefrences.SetEasyDifficulty(0);
        GamePrefrences.SetMediumDifficulty(0);
        GamePrefrences.SetHardDifficulty(1);

        easySign.SetActive(false);
        mediumSign.SetActive(false);
        hardSign.SetActive(true);
    }
コード例 #2
0
    void InitializeVaribles()
    {
        if (!PlayerPrefs.HasKey("Game Initialized"))
        {
            GamePrefrences.SetEasyDifficulty(0);
            GamePrefrences.SetEasyDifficultyCoinScore(0);
            GamePrefrences.SetEasyDifficultyHighScore(0);

            GamePrefrences.SetMediumDifficulty(1);
            GamePrefrences.SetMediumDifficultyCoinScore(0);
            GamePrefrences.SetMediumDifficultyHighScore(0);

            GamePrefrences.SetHardDifficulty(0);
            GamePrefrences.SetHardDifficultyCoinScore(0);
            GamePrefrences.SetHardDifficultyHighScore(0);

            GamePrefrences.SetMusicState(0);

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