public static void Initialize() { if (_mb == null) { _mainThreadId = System.Threading.Thread.CurrentThread.ManagedThreadId; var go = new GameObject("_ResourceManager"); go.hideFlags = HideFlags.HideInHierarchy; _mb = go.AddComponent <JobScheduler>(); _mb.StartCoroutine(_Update()); } }
public static Coroutine DispatchCoroutine(IEnumerator co) { return(_mb.StartCoroutine(co)); }