public void InitManagers() { //Initialize managers this.collisionManager = gameData.CollisionManager; this.enemyManager = new EnemyManager(bulletManager, gameData); //give bullet manager to enemy manager to handle enemy shooting this.waveManager = new WaveManager(enemyManager); this.stageManager = new StageManager(gameData, waveManager); }
public void ResetGame() { gameData.deadBullets.Clear(); gameData.playerBullets.Clear(); gameData.enemyBullets.Clear(); gameData.CurrentEnemies.Clear(); this.enemyManager = null; this.waveManager = null; this.stageManager = null; }