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");
}
}
}