Added health, respawning and Bullet spawners

This commit is contained in:
2022-04-18 00:32:24 +02:00
parent 1bd6d79672
commit 209470d610
227 changed files with 53417 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameManager : MonoBehaviour
{
@@ -21,7 +22,7 @@ public class GameManager : MonoBehaviour
// Start is called before the first frame update
void Start()
{
player = GameObject.FindGameObjectWithTag("Player").GetComponent<Player>();
}
// Update is called once per frame
@@ -49,4 +50,11 @@ public class GameManager : MonoBehaviour
{
}
public void RestartGame()
{
//get active scene and reload it
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
}