x


Load next level from array ?

I want to load the next level from array!

I made something like this :-

function OnTriggerEnter (other : Collider) {    
    if(other.gameObject.CompareTag("End")) {
        yield WaitForSeconds(1);
        Application.LoadLevel(1);
      }
}

It loaded the 2nd level. But when in the 2nd level, it doesn't load the 3rd level as i needed. But it loaded the 2nd level again. How do i do as i wanted ?

more ▼

asked Jan 14 '12 at 01:21 PM

rashmiller gravatar image

rashmiller
11 6 10 10

Duplicated of this: http://answers.unity3d.com/questions/205599/load-level-based-on-array-.html, but from a "different" user. Other two with the same name, anybody can close them.

Jan 14 '12 at 01:23 PM BiG
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x168
x39

asked: Jan 14 '12 at 01:21 PM

Seen: 610 times

Last Updated: Jan 14 '12 at 01:23 PM