Beispiel #1
0
    private void Awake()
    {
        if (level)
        {
            if (!Globals.initialLoad)
            {
                LevelPoints = PlayerPrefs.GetInt("tr_level");

                JumpsPoints = PlayerPrefs.GetInt("tr_jumps");

                WordsPoints = PlayerPrefs.GetInt("tr_words");

                ScorePoints = PlayerPrefs.GetInt("tr_points");
            }
            else
            {
                LevelPoints = 1;
            }

            level.text = LevelPoints.ToString();
            jumps.text = JumpsPoints.ToString();
            words.text = WordsPoints.ToString();
            score.text = ScorePoints.ToString();
        }
    }
Beispiel #2
0
 public void AddJump()
 {
     JumpsPoints++;
     jumps.text = JumpsPoints.ToString();
     AddPoints(10);
 }