I have 2 scenes. One is “Main Menu”, consisting in a black image and a text ( they are independent one from another, in other words, they are 2 components ), and the other one is “Game”. The text in the Main Menu is “START”. To this text, I attached this script:
public class Start_Script : MonoBehaviour {
void OnMouseEnter()
{
Application.LoadLevel ("Game");
}
void Update()
{
if(Input.GetKey(KeyCode.Escape))
{
Application.Quit();
}
}
}
But when I click the text, nothing happens. How can I fix this? Thanks, guys.