system
1
Im trying to make it so when i click an object in my game it takes me to my other world.
heres there script im using now. im am very new to scripting and i wouldnt be suprised if i did this wrong. Its in javascript
if(OnMouseUp)
[
Application.LoadLevel (1)
];
It says OnMouseUp is an unknown identifier
function OnMouseUp(){
Application.LoadLevel(1);
}
Apply it to a gameobject with collider to receive your mouse clicks.