Main: Remove references to Vial{1,2,3}

parent 2782abd3
......@@ -11,9 +11,6 @@ public class UIController : MonoBehaviour
public Text Score;
public Text HighScore;
public Text NbVials;
public Image Vial1;
public Image Vial2;
public Image Vial3;
public Image Battery;
public Image Progression;
public Sprite[] ProgressionSprites;
......@@ -26,9 +23,6 @@ public class UIController : MonoBehaviour
{
_player = GameObject.FindWithTag("Player").GetComponent<Player>();
HighScore.enabled = false;
Vial1.enabled = false;
Vial2.enabled = false;
Vial3.enabled = false;
_oldHs = PlayerPrefs.GetInt("highscore");
}
......@@ -53,12 +47,6 @@ public class UIController : MonoBehaviour
private void HandlePowerUps()
{
if (_player.NbVials >= 5)
Vial1.enabled = true;
if (_player.NbVials >= 10)
Vial2.enabled = true;
if (_player.NbVials >= 15)
Vial3.enabled = true;
}
private void DisplayBattery()
......
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