This is my code: using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneShifter : MonoBehaviour {
//This should change scenes
public void shift(string sceneName){
SceneManager.LoadScene (sceneName); //This should work, now. Updated!
}
}
I have it attached to my button, but cannot get the scene to change. Only the object itself changes name.