Ejemplo n.º 1
0
    public void SetCurrentProgression(ProgressionMode mode)
    {
        currentProgression = mode;
        int score = mode == ProgressionMode.SLOW ? int.Parse(PlayerPrefs.GetString("normal")) : int.Parse(PlayerPrefs.GetString("rush"));

        HighScoreUI.instance.SetHighScore(score);
    }
Ejemplo n.º 2
0
        public void SetProgressionMode(bool isNormal)
        {
            currentMode = isNormal ? ProgressionMode.SLOW : ProgressionMode.FAST;
            switch (currentMode)
            {
            case ProgressionMode.SLOW:
                levelInterval       = 20;
                gameSpeedMultiplier = 1f;
                Time.timeScale      = 1f;
                PlayerPrefs.SetInt("normalMode", 1);
                break;

            case ProgressionMode.FAST:
                levelInterval       = 3;
                gameSpeedMultiplier = 1.1f;
                Time.timeScale      = 1.1f;
                PlayerPrefs.SetInt("normalMode", 0);
                break;



                /*
                 * case ProgressionMode.SLOW:
                 *  levelInterval = 25;
                 *  Time.timeScale = 1;
                 *  PlayerPrefs.SetInt("normalMode", 1);
                 *  break;
                 * case ProgressionMode.FAST:
                 *  levelInterval = 10;
                 *  gameSpeedMultiplier = 1.1f;
                 *  Time.timeScale = 1.1f;
                 *  PlayerPrefs.SetInt("normalMode", 0);
                 *  break;*/
            }

            UIMaster.instance.SetCurrentProgression(currentMode);
        }