ok so I've been following this tutorial for a main menu but I'm having trouble with the code because it keeps saying I have errors when I cant find any so all help is appreciated
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
public class Restart : MonoBehaviour
{
public void RestartGame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name); // loads current scene
}
}