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