public static void Delay(Action method) { #if UNITY_EDITOR if (Proxy.IsEditor()) { CallbackFunction callback = new CallbackFunction(method); if (EditorApplication.delayCall != callback) { EditorApplication.delayCall += callback; } return; } #endif Call.Delay(method, 0); }
public static void Delay(Action method, float seconds, bool overwrite = true) { Call.Delay(method, method, seconds, overwrite); }