public override void LoadContent() { CurrGame = (PathDefenceGame)ScreenManager.Game; LevelManager = new LevelManager(CurrGame, this, levelName); LevelManager.Initialize(); WaveManager = new WaveManager(CurrGame, this, levelName); WaveManager.Initialize(); Background = new BackgroundGamePlayScreen(CurrGame, levelName); Background.Initialize(); TowerManager = new TowerManager(CurrGame, this); TowerManager.Initialize(); MoneyManager = new MoneyManager(CurrGame, this); MoneyManager.Initialize(); LiveManager = new LiveManager(CurrGame, this); LiveManager.Initialize(); PointsManager = new PointsManager(); PointsManager.Initialize(); GuiManager = new GuiManager(CurrGame, this); GuiManager.Initialize(); CreepDeleteList.AddRange(CreepList); AddCreepList.Clear(); CreepTimer.Start(); gameState = EGameState.Running; CurrGame.IsMouseVisible = true; base.LoadContent(); }
public override void LoadContent() { CurrGame = (PathDefenceGame)ScreenManager.Game; LevelManager = new LevelManager(CurrGame, this, levelName); LevelManager.Initialize(); WaveManager = new WaveManager(CurrGame, this, levelName); WaveManager.Initialize(); Background = new BackgroundGamePlayScreen(CurrGame, levelName); Background.Initialize(); TowerManager = new TowerManager(CurrGame, this); TowerManager.Initialize(); MoneyManager = new MoneyManager(CurrGame, this); MoneyManager.Initialize(); LiveManager = new LiveManager(CurrGame, this); LiveManager.Initialize(); PointsManager = new PointsManager(); PointsManager.Initialize(); GuiManager = new GuiManager(CurrGame, this); GuiManager.Initialize(); CreepDeleteList.AddRange(CreepList); AddCreepList.Clear(); CreepTimer.Start(); gameState = EGameState.Running; CurrGame.IsMouseVisible = true; base.LoadContent(); }