csharp/1ZouLTReX1/FP-MOG/top%20down%20shooter/Assets/Scripts/BackButton.cs

BackButton.cs
using UnityEngine;
using UnityEngine.SceneManagement;

public clast BackButton : MonoBehaviour
{
    public void ReturnToMainMenu()
    {
        SceneManager.LoadScene("MainMenu");
    }
}