Create Menu

I have implemented the menu and in case of death, it will throw the player onto the menu stage.
This commit is contained in:
Max_Divizion
2025-01-21 17:13:52 +03:00
parent 7ad7cd5566
commit 8f5aef3424
32 changed files with 5067 additions and 2 deletions

View File

@ -11,7 +11,7 @@ public class HitDetectorScript : MonoBehaviour
if (other.gameObject.CompareTag("Car"))
{
Debug.Log("Player was hitted car");
SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().name);
SceneManager.LoadSceneAsync(1);
}
}