public static WaveManager GetInstance() { if (_instance == null) { _instance = new WaveManager(); } return(_instance); }
/// <summary> /// Constructor of the game /// </summary> public Game1() { // Instantiate the graphics _graphics = new GraphicsDeviceManager(this); if (_graphics == null) { System.Environment.Exit(0); } // Let the mouse visible on the game IsMouseVisible = true; // Set the name of the window Window.Title = "Mario Tower Defense"; // Instantiate the waveManager _waveManager = Enemy.WaveManager.GetInstance(); }