Hello , I tried so hard (and got so far) to make a Text say “Press H to buy health” when my points are superior to 1000 and “press h to buy health or G to upgrade your damage” when my points are over 3000 . When i press H or G (if i have points) it works but the text will not be there when i reach 1000 or 3000 .
Here is my text script
using UnityEngine.UI;
public class GearUp : MonoBehaviour {
private ScoreKeeper scoreKeeper;
private Text text;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (ScoreKeeper.score > 1000)
{
Text.print ("press H to buy life");
}
if (ScoreKeeper.score > 3000)
{
Text.print("press h to buy life Or G to upgrade your ship damage ");
}
}
}