Question by
Wach3D · Mar 28, 2016 at 02:42 PM ·
c#ontriggerenterloadleveldeathloading screen
How to initiate something before Application.LoadLevel? (C#)
I'm a newbie. I'm using
OnTriggerEnter() { Application.LoadLevel (""); }
to make my character die or go to the next level. Is it possible to have a timed event happen (animation/death screen) before it loads to a level? Above is basically all I've been using so far.
Comment
Create it before you transition, then:
http://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html
Your answer
Follow this Question
Related Questions
How to fix Loading Screen? 0 Answers
How to disable OnTriggerEnter on one script? 1 Answer
trying to get a door to open when two trigger volumes are activated,Regarding an OnTriggerEnter 0 Answers
Loading new scene in unity 2D 0 Answers
NullReferenceException: Object reference not set to an instance of an object 0 Answers