For some reason, my Start button on the opening start scene won’t work.
It keeps saying this:
I haven’t done anything really special with the LevelManager script… I made it the function Static, but I’ve tried it both ways, and nogo.
Here’s my code:
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
public class LevelManager : MonoBehaviour
{
public static void LoadScene(string name)
{
Debug.Log ("LoadScene called for " + name);
SceneManager.LoadScene (name);
}
public void QuitGame(){
Debug.Log ("QuitGame requested");
SceneManager.LoadScene ("Quit");
}
}