Hi I need help
When player collides with object how can I get the game to load next level but instead of making loads of scripts how can I make this one re-useable
Thanks
Hi I need help
When player collides with object how can I get the game to load next level but instead of making loads of scripts how can I make this one re-useable
Thanks
var level : String;
function OnTriggerEnter( hit : Collider){
Application.LoadLevel(“SCP_Level”+level);
}
here u can apply this to a gameObject. when u enter this trigger it will load ur next lvl
my lvlnames are like this “SCP_Level1” so the var level will define ur level just change that numer when u attach the script in the trigger.
hope this helps.