I wanted to load the next level based on array once entered a trigger. And so, i want each level have this script and load the next level of its own.
function OnTriggerEnter (other : Collider) {
if(other.gameObject.CompareTag("End")) {
yield WaitForSeconds(1);
Application.LoadLevel(1);
}
}
This script doesn’t do as i wanted. In level 1, it load the level 2. But in level2, it load level2 again and not level3. So, you got what i mean? Then, how?