For example, I want it so when the player collides with an object, it then gets sent to a random scene. Here’s a code that I failed to make. Can anybody make a script for that reason?
var LevettoLoad : String;
function OnCollisionEnter (Collison : Collision) {
if(Collison.gameObject.tag == "Player")
{
Application.LoadLevel (Random.Range(0, Application.levelCount-1000));
}
}