I’m trying to make a level loading capsule that will load the next level. But to do this with my current script I have to rewrite it and make a new script to load a different level.
function OnTriggerEnter (info : Collider)
{
if (info.tag == "Player")
{
Application.LoadLevel("Level Name Here");
}
}
I was wondering if there is some way to use a var to load the level instead of rewriting the script. Thank You!
Thank you helped a lot!
– themrgman142