I’ve tried a bunch of fixes to this but none have worked, I feel that this is a rather simple fix. Any help?
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class toMainMenu : MonoBehaviour {
void Update( )
{
if( Input.GetKeyUp( KeyCode.Escape ) ){
SceneManager.LoadScene(string MainMenu1);
}