Question by
dev_collindavis · Apr 18, 2016 at 11:30 PM ·
applicationapplication.loadlevel
Teleport to next scene
I have seen a lot of forum posts about this but not on the specific question I have. This is what I have so far.
function OnTriggerEnter (Col : Collider){
if (Col.tag == "Player"){
Application.LoadLevel();
}
}
I want the script to be able to be used on each level so instead of
function OnTriggerEnter (Col : Collider){
if (Col.tag == "Player"){
Application.LoadLevel(int);
}
}
I can just make it go to the next scene in the build.
Comment