Beispiel #1
0
 /// <summary>
 ///   Load all XNA <see cref = "ContentManager" /> content
 /// </summary>
 /// <param name = "catalogue"></param>
 /// <param name = "manager">XNA content manage</param>
 public virtual void LoadContent(IContentCatalogue catalogue, ContentManager manager)
 {
     if (!string.IsNullOrEmpty(MaterialPath))
     {
         Material = manager.Load <Effect>(MaterialPath);
         DefaultCollisionMaterial = new DefaultCollisionMaterial();
     }
 }
Beispiel #2
0
 /// <summary>
 ///   Load all XNA <see cref = "ContentManager" /> content
 /// </summary>
 /// <param name = "catalogue"></param>
 /// <param name = "manager">XNA content manage</param>
 public virtual void LoadContent(IContentCatalogue catalogue, ContentManager manager)
 {
     if (!string.IsNullOrEmpty(MaterialPath))
     {
         Material = manager.Load<Effect>(MaterialPath);
         DefaultCollisionMaterial = new DefaultCollisionMaterial();
     }
 }