I am unable to load “Game Over” scene on Unity. I guess my code is correct,too. No errors are displayed.
Here is the script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LoseCollider : MonoBehaviour
{
private void OnTriggerEvent2D(Collider2D collision)
{
SceneManager.LoadScene("Game Over");
}
}
And here are Unity Screenshots: