Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     HiScore          = PlayerPrefs.GetInt("HiScore");
     Score.text       = "SCORE:" + Points.ToString();
     HiScoreText.text = "HISCORE:" + HiScore.ToString();
     ShootNow();
     Enemy();
     Rotation();
     IsTimeToDie();
 }
        public void addScore(int _Score)
        {
            UpdateScore(_Score);

            // display user scores
            if (scoreUI)
            {
                scoreUI.text = Score.ToString();
            }

            if (hiScoreUI)
            {
                hiScoreUI.text = HiScore.ToString();
            }

            if (numArrowsUI)
            {
                numArrowsUI.text = numArrows.ToString();
            }
        }