
As you can see in the image above, I have 4 buttons.
I have attached a C# script to only one button to change the scene on click.
Now the scene should change only when I click on the button to which I have attached the script.
But the scene changes even if I click anywhere else on the screen.
This is the script that I have attached -
public class ButnDoSmthng : MonoBehaviour {
void Update () {
if (Input.GetMouseButtonDown(0))
Application.LoadLevel ("Scene1");
}
}
Whats wrong here and what might be a solution ?
