Пример #1
0
 T Load <T>(string path)
 {
     try
     {
         return(MonoContentManager.Load <T>(path));
     }
     catch (Exception e)
     {
         throw new QMissingContentException($"{path} could not find Asset!\n" + e);
     }
 }
Пример #2
0
 void Clear()
 {
     foreach (var texturesValue in Textures.Values)
     {
         ((Texture2D)texturesValue).Dispose();
     }
     Textures.Clear();
     Sounds.Clear();
     Fonts.Clear();
     Music.Clear();
     MonoContentManager.Unload();
 }