public override void Draw(GameTime gameTime) { if (levelHander.GetGameState == GameLevelHandler.GameState.PLAY) { octreeWorld.GetOctree().ModelsDrawn = 0; explosionHandler.Draw(gameTime, camera); BoundingFrustum cameraFrustrum = new BoundingFrustum(camera.ViewMatrix * camera.ProjectionMatrix); background.Draw(Game.GraphicsDevice, camera); octreeWorld.GetOctree().Draw(camera.ViewMatrix, camera.ProjectionMatrix, cameraFrustrum); city.DrawCity(Game.GraphicsDevice, camera, floorEffect, 0f, new Vector3(0, 0, 0)); //octreeWorld.GetOctree().DrawBoxLines(camera.ViewMatrix, camera.ProjectionMatrix, Game.GraphicsDevice, effect); //city.DrawBoxLines(camera.ViewMatrix, camera.ProjectionMatrix, Game.GraphicsDevice, effect); camera.DrawWeapon(); textHandler.DrawText(((Game1)Game).GetSpriteFont(), ((Game1)Game).GetSpriteBatch(), Game.GraphicsDevice); } base.Draw(gameTime); }