protected override void Update( GameTime gameTime ) { // Allows the game to exit if ( GamePad.GetState ( PlayerIndex.One ).Buttons.Back == ButtonState.Pressed ) this.Exit ( ); //Updates all mouse and keyboard presses. _InputManager.UpdateInput(); //Updates position of buildings _BuildingManager.Update(gameTime); if ( _InputManager.CurrentKey.IsKeyDown ( Keys.E ) ) { _Emitter.Fire ( ); } _unitOne.Update ( gameTime ); _Emitter.Update ( gameTime ); base.Update ( gameTime ); }