adding basic wave tracking and enemy spawning - needs some more work done
This commit is contained in:
@@ -9,6 +9,7 @@ public class UIManager : MonoBehaviour
|
||||
public TextMeshProUGUI playerHealthLabel;
|
||||
public TextMeshProUGUI gameOverLabel;
|
||||
public TextMeshProUGUI scoreLabel;
|
||||
public TextMeshProUGUI waveLabel;
|
||||
|
||||
public Button restartButton;
|
||||
private GameManager gameManager;
|
||||
@@ -27,6 +28,8 @@ public class UIManager : MonoBehaviour
|
||||
|
||||
scoreLabel.text = "Score: " + Mathf.Round(gameManager.score).ToString();
|
||||
|
||||
waveLabel.text = "Wave: " + (gameManager.wave + 1).ToString();
|
||||
|
||||
if (gameManager.player.health <= 0)
|
||||
{
|
||||
gameOverLabel.gameObject.SetActive(true);
|
||||
|
||||
Reference in New Issue
Block a user