public static void NextCoTask(object jobId, IEnumerator co)
        {
            if (Application.isPlaying)
            {
                if (jobId != null && jobId is MonoBehaviour)
                {
                    MonoBehaviour mb = jobId as MonoBehaviour;
                    mb.StartCoroutine(co);
                }
                else
                {
                    Debug.LogError("In Playing Mode, Job Runner Error");
                }
            }
            else
            {
                if (jobId != null)
                {
#if UNITY_EDITOR
                    EditorCoroutineGroup.StartCoroutine(co, jobId);
#else
                    Debug.LogError("Cant Run Coroutine");
#endif
                }
                else
                {
                    Debug.LogError("In Editor Mode, Job Runner is Null");
                }
            }
        }
 public void CancelProgress()
 {
     EditorCoroutineGroup.StopAllCoroutines(EditorContexts.mIns.GuiWindow);
     GuiContext.IsLoading = false;
     if (GuiWindow)
     {
         GuiWindow.Inited = true;
     }
     EditorUtility.ClearProgressBar();
 }
 void ModeChange(AssetWindow.WindowMode old, AssetWindow.WindowMode newmd)
 {
     EditorCoroutineGroup.StartCoroutine(DoModeChange(old, newmd), GuiWindow);
 }
 public void ForceModeChange(AssetWindow.WindowMode md)
 {
     EditorCoroutineGroup.StartCoroutine(DoForceModeChange(md), GuiWindow);
 }