So I have multiple scenes in my game, and I want to have the player move between them by walking into a certain object (a mesh). How do I set this up where it changes the scene by detecting a collision? Thanks!
Essentially:
OnCollision {
Application.LoadLevel(“SceneName_in_BuildSettings_or_#”);
}
var collisionObject : GameObject;
function OnCollisionEnter(collision : Collision){
if (collision.gameObject.name == collisionObject){
Application.LoadLevel(“0011”);
}
}