I`am beginner and i need help with scripting.Can someone help me. I want to make script when i click on some object using FPC go to next level.
Using:
Application.LoadLevel
I`am beginner and i need help with scripting.Can someone help me. I want to make script when i click on some object using FPC go to next level.
Using:
Application.LoadLevel
wait you can try the first script he wrote, there’s simple a semicolor missing at the end of (“Level1”), incase you didn’t try that
attach to any gameobject as long it has a Collider on it
function Update(){
if(Input.GetMouseButton(0))
{
Application.LoadLevel("Level")
}
}