// Update is called once per frame void Update() { if (player.GetLife() <= 0) { gameOver = true; } OnGameOver(); SetTextUILabels(); }