diff --git a/My project/Assets/Scripts/Managers/GameOverManager.cs b/My project/Assets/Scripts/Managers/GameOverManager.cs deleted file mode 100644 index e4a081e0abaf7a158297c0c971409a6079681453..0000000000000000000000000000000000000000 --- a/My project/Assets/Scripts/Managers/GameOverManager.cs +++ /dev/null @@ -1,34 +0,0 @@ -using UnityEngine; -using UnityEngine.SceneManagement; - -public class GameOverManager : MonoBehaviour -{ - public PlayerHealth playerHealth; - public float restartDelay = 5f; - - - Animator anim; - float restartTimer; - - - void Awake() - { - anim = GetComponent<Animator>(); - } - - - void Update() - { - if (playerHealth.currentHealth <= 0) - { - anim.SetTrigger("GameOver"); - - restartTimer += Time.deltaTime; - - if (restartTimer >= restartDelay) - { - SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1); - } - } - } -} \ No newline at end of file diff --git a/My project/Assets/Scripts/Managers/GameOverManager.cs.meta b/My project/Assets/Scripts/Managers/GameOverManager.cs.meta deleted file mode 100644 index 7d9ff5ee8079408acc807dcf00846b4834b028f8..0000000000000000000000000000000000000000 --- a/My project/Assets/Scripts/Managers/GameOverManager.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d9c9e0011c2ed97428a4efc03b455359 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: