Пример #1
0
 /// <summary>
 /// Load folder
 /// </summary>
 public static void LoadFolder(string folderPath)
 {
     if (folderPath[folderPath.Length - 1] != '/')
     {
         folderPath += '/';
     }
     string[] filesPath = FileProcess.GetFileNames(_resourcePath + folderPath);
     for (int i = 0; i < filesPath.Length; i++)
     {
         LoadResource(folderPath + filesPath[i]);
     }
 }
Пример #2
0
 /// <summary>
 /// Async load folder
 /// </summary>
 public static string LoadFolderAsync(string folderPath)
 {
     if (folderPath[folderPath.Length - 1] != '/')
     {
         folderPath += '/';
     }
     AddTrackingLoad(folderPath, 0);
     string[] filesPath = FileProcess.GetFileNames(_resourcePath + folderPath);
     for (int i = 0; i < filesPath.Length; i++)
     {
         LoadResourceAsync(folderPath + filesPath[i], folderPath);
     }
     return(folderPath);
 }