Example #1
0
 public void Init(Game game, SpriteBatch spriteBatchToUse)
 {
     TheSpriteBatch = spriteBatchToUse;
     TheGame = game;
     objectManager = (ObjectManager)TheGame.Services.GetService(typeof(ObjectManager));
     collisionManager =
         (IManageCollisionsService)game.Services.GetService((typeof(IManageCollisionsService)));
     objectManager.RemoveAllObjects();
     collisionManager.RemoveAllObjects();
     levelLoaded = false;
 }
 public void Init(Game game, SpriteBatch spriteBatchToUse)
 {
     TheSpriteBatch   = spriteBatchToUse;
     TheGame          = game;
     objectManager    = (ObjectManager)TheGame.Services.GetService(typeof(ObjectManager));
     collisionManager =
         (IManageCollisionsService)game.Services.GetService((typeof(IManageCollisionsService)));
     objectManager.RemoveAllObjects();
     collisionManager.RemoveAllObjects();
     levelLoaded = false;
 }
 public virtual void UnLoadContent()
 {
     objectManager.RemoveAllObjects();
     collisionManager.RemoveAllObjects();
 }