static void CreateInstanceIfNeeded()
 {
     if (instance == null)
     {
         instance = new EditorCoroutines();
         instance.Initialize();
     }
 }
        public void StartBuild()
        {
            buildLog.Clear();
            Progress = 0;

            curBuilding   = enumerators.Dequeue();
            curEnumerator = curBuilding.OnBuilding();

            this.mainWindow.SetPanelState(EToolbar.Building);
            startTime = DateTime.Now;

            BuildUtil.DisableCacheServer();

            EditorCoroutines.StartCoroutine(this.onUpdateBuilding(), this.mainWindow);
        }
        public void CanleBuild()
        {
            EditorCoroutines.StopAllCoroutines(this.mainWindow);

            Debug.LogWarning("!!!-----Canle Build------!!" + enumerators.Count);
        }