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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user