Quantcast
Viewing latest article 9
Browse Latest Browse All 29

Answer by The_Magical_Kiwi

using UnityEngine; using System.Collections; public class LoadLevel : MonoBehaviour{ public int secondsToWait; int startTime; void Start(){ startTime = Time.time; } void Update(){ if(Time.time - startTime >= secondsToWait){ AutoFade.LoadLevel("splashscreen2" ,3,1,Color.black); } } } Not particularly elegant but it should work. Also take a look at http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.StartCoroutine.html as this is probably a better way of doing this.

Viewing latest article 9
Browse Latest Browse All 29

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>