示例#1
0
 private static ResourceManager LoadResourceFileWithCache(string filePath, IResourceLocator locator)
 {
     if (!CACHE.ContainsKey(filePath))
     {
         CACHE.Add(filePath, locator.LoadBundle(filePath));
     }
     return(CACHE[filePath]);
 }
示例#2
0
 private static ResourceManager LoadResourceFileWithCache(string filePath, IResourceLocator locator)
 {
     if (!CACHE.ContainsKey(filePath))
     {
         CACHE.Add(filePath, locator.LoadBundle(filePath));
     }
     return CACHE[filePath];
 }