Main: Fix position of score text

parent 5b837f5e
No preview for this file type
......@@ -23,7 +23,7 @@ public class UIController : MonoBehaviour
void Start ()
{
_player = GameObject.FindWithTag("Player").GetComponent<Player>();
HighScore.enabled = false;
HighScore.text = " "; // Keep position of elements, even when not displaying this one
_oldHs = PlayerPrefs.GetInt("highscore");
}
......@@ -45,7 +45,7 @@ public class UIController : MonoBehaviour
private void HandleScore()
{
if (_oldHs < _player.Score)
HighScore.enabled = true;
HighScore.text = "New high score!";
}
private void HandlePowerUps()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment