public static void Show(string title, string info, IYieldProgressReporter progressReporter)
        {
            _title = title;
            _info  = info;

            if (_progress != null)
            {
                Progress_Completed();
            }

            _progress = progressReporter;
            RegisterCallbacks();
        }
Beispiel #2
0
 public static void StartWithProgressBar(this IYieldProgressReporter reporter, string title = "",
                                         string info = "")
 {
     Coroutine.Start(reporter as IEnumerator);
     ProgressBar.Show(title, info, reporter);
 }
 private static void Progress_Completed()
 {
     UnRegisterCallbacks();
     _progress = null;
     EditorUtility.ClearProgressBar();
 }