public LevelScreen(Spawner spawner, SpriteManager backSpriteManager, SpriteManager midSpriteManager, SpriteManager frontSpriteManager) { _backSpriteManager = backSpriteManager; _midSpriteManager = midSpriteManager; _frontSpriteManager = frontSpriteManager; _spawner = spawner; }
public override void Initialize() { _audioManager = (IAudioManager)Game.Services.GetService(typeof(IAudioManager)); // Layer sprite managers _backSpriteManager = new SpriteManager(Game); _backSpriteManager.DrawOrder = 1; _midSpriteManager = new SpriteManager(Game); _midSpriteManager.DrawOrder = 2; _frontSpriteManager = new SpriteManager(Game); _frontSpriteManager.DrawOrder = 3; //Game.Components.Add(_backSpriteManager); //Game.Components.Add(_midSpriteManager); //Game.Components.Add(_frontSpriteManager); _backSpriteManager.Initialize(); _midSpriteManager.Initialize(); _frontSpriteManager.Initialize(); }