using UnityEngine; using System.Collections; public class DelayCall : MonoBehaviour { /// /// eg: StartCoroutine(DelayCall.Call(callback, delay)) /// /// /// /// public static IEnumerator Call(System.Action callback, float delay) { yield return new WaitForSeconds(delay); callback(); } }