Timeline for load scene - some time (2 seconds) after object is destroyed in Unity
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 5, 2016 at 6:18 | vote | accept | kp21 | ||
Aug 3, 2016 at 15:19 | history | edited | Seyed Morteza Kamali | CC BY-SA 3.0 |
added 656 characters in body
|
Aug 3, 2016 at 10:34 | comment | added | kp21 |
Then I replace print("That works!") with Application.LoadLevel("scene2") ?
|
|
Aug 3, 2016 at 9:39 | comment | added | DisturbedNeo | If you make the GameManager a static class, you don't even need need to do the whole GetComponent thing, you can just say "GameManager.NextLevel()". It's only slightly quicker in terms of actual performance, but I think making a GameManager class static is just good practice. | |
Aug 3, 2016 at 9:29 | history | answered | Seyed Morteza Kamali | CC BY-SA 3.0 |