Question by
SpitfirePro3 · Jun 03, 2016 at 04:12 PM ·
c#buttonmain menu
LoadScene not Working
I have been trying to program a game, and my current project includes having a title screen with a play button that takes you to the actual game screen. For some reason after writing the code, clicking the button has no affect on the game. I will post the code below, I would appreciate any help you can provide. using UnityEngine; using System.Collections; using UnityEngine.SceneManagement;
public class Play : MonoBehaviour {
public string level;
void Clicked() {
if (Input.GetMouseButtonUp(0)) {
SceneManager.LoadScene("Cookie");
}
}
}
Comment
Answer by rcogdellbaird · Jan 14, 2019 at 03:52 AM
I know this is super late but for anyone else, this video is great: https://www.youtube.com/watch?v=7WRIgPhiveA