I created a button and want when you click on it with the right mouse button, it leads to another scene. I wrote the following code:
using UnityEngine;
using System.Collections;
public class LoadingScene : MonoBehaviour {
public void LoadScene () {
Application.LoadLevel ("game");
}
}
There is nothing wrong, put the correct information in Unity, the code also shows no errors. But when I test nothing happens.
Do I have to configure the mouse? why yes, I do not know how to do this.
↧