Пример #1
0
 internal static void LoadTextures()
 {
     foreach (PrimaryTexture t in TextureFiles.Keys)
     {
         string key = t.ToString();
         if (!Textures.ContainsKey(key))
         {
             Textures.Add(key, UIContent.Load <Texture2D>(TextureFiles[t]));
         }
         else
         {
             Textures[key] = UIContent.Load <Texture2D>(TextureFiles[t]);
         }
         GC.Collect();
     }
 }