コード例 #1
0
        protected override void DoInit()
        {
            List <string> folders = this.m_folderList.GetFolders();

            foreach (string current in folders)
            {
                SearchMissingInFolderJob task = new SearchMissingInFolderJob(this.m_folderList, current);
                base.Add(task);
            }
        }
コード例 #2
0
        private void UpdateSearchProgress(SearchMissingInFolderListJob job1)
        {
            if (job1 == null)
            {
                return;
            }
            SearchMissingInFolderJob searchMissingInFolderJob = job1.Current() as SearchMissingInFolderJob;
            string folderPath = searchMissingInFolderJob.FolderPath;
            int    num        = searchMissingInFolderJob.TaskCount();
            int    num2       = searchMissingInFolderJob.CurrentIndex();
            SearchMissingInPrefabTask searchMissingInPrefabTask = searchMissingInFolderJob.Current() as SearchMissingInPrefabTask;
            string filePath = searchMissingInPrefabTask.FilePath;
            string fileName = Path.GetFileName(filePath);
            bool   flag     = EditorUtility.DisplayCancelableProgressBar("Searching: " + folderPath, "Search in: " + fileName, (float)(num2 + 1) / (float)num);

            if (flag)
            {
                job1.SetFinished();
            }
        }