private void Start() { Co.Delay(() => Debug.Log("after 1 second"), 1f); Co.Delay(() => Debug.Log("after 2 seconds"), 2f); var plainClass = new PlainClass(); plainClass.TestCoroutine(); }
public static void Delay(float delay, System.Action callback) { Co.Delay(callback, delay); //StartCoroutine (DelayProcess (delay, callback)); }