I need to switch the scene/level in game by clicking on a button.
I have the button highlighting in blue when you hover over the “hitbox” which is a box collider.
When i click on the button nothing happpens and the game stays at the menu. How do I fix this so it goes to the scene?
Here is the script (javascript):
function OnMouseEnter()
{
renderer.material.color = Color.blue;
}
function OnMouseExit()
{
renderer.material.color = Color.white;
}
function OnMouseClick()
{
Application.LoadLevel ("InGame");
}