void Update() { if (GM.GetStartTime() < 2F) { middle.color = new Color32(255, 0, 0, 255); } else { middle.color = new Color32(0, 255, 0, 255); } }
void GetPlayersLife()//Get player's life function { Print = GM.GetStartTime().ToString(); GetComponent <Text>().text = Print;//change print text }
void Update() { slider.value = GM.GetStartTime(); }