Coderock

--------------------------------
link hover image

Unity 2D: How can I let something happen after a small delay?

Frontpage calendar image October 2, 2016

You can do it with coroutines in any MonoBehaviour: IEnumerator ExecuteAfterTime(float time) { yield return new WaitForSeconds(time); // Code to execute after the delay } And you can call it with, for example StartCoroutine(ExecuteAfterTime(5));