public static bool Initialize(bool wake = false) { if (isManagerCreated) { if (wake) { ManagerUpdater.WakeUp(); } return(true); } #if UNITY_EDITOR if (!UnityEditor.EditorApplication.isPlaying) { UnityEngine.Debug.LogError("LiteCoroutine only supported in playing mode"); return(false); } #endif defaultManager = new Manager(); if (wake) { ManagerUpdater.WakeUp(); } return(isManagerCreated = true); }
public static void WakeUp() { ManagerUpdater.WakeUp(); }