예제 #1
0
파일: Scene.cs 프로젝트: DStow/MonoGameLib
 public virtual void LoadContent(ContentManager content)
 {
     foreach (object o in GameObjects)
     {
         IContentLoadable loadableObj = o as IContentLoadable;
         if (loadableObj != null)
         {
             loadableObj.LoadContent(content);
         }
     }
 }
예제 #2
0
 public ContentLoader(IContentLoadable contentLoadable)
 {
     _contentItems = new List<ContentItem>();
     _contentLoadable = contentLoadable;
     LoadAssets();
 }