コード例 #1
0
 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());
     }
 }
コード例 #2
0
 public static Coroutine DispatchCoroutine(IEnumerator co)
 {
     return(_mb.StartCoroutine(co));
 }