adding basic wave tracking and enemy spawning - needs some more work done

This commit is contained in:
Amaan Shawkath
2022-04-19 22:53:17 +01:00
parent fbdbe9c9bb
commit 9c85dfa48f
9 changed files with 557 additions and 74 deletions

View File

@@ -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);