/// <summary> /// Draw powerup /// </summary> public void Draw(GameManager game, GraphicsDevice gd, RenderTechnique technique, Vector3 cameraPosition, Matrix viewProjection, LightList lights) { if (game == null) { throw new ArgumentNullException("game"); } // if now waiting to respawn if (waitTime == 0) { // draw powerup model game.DrawModel(gd, model, technique, cameraPosition, bobbing * transform, viewProjection, lights); } }
/// <summary> /// Draw projectile /// </summary> public void Draw(GameManager game, GraphicsDevice gd, RenderTechnique defaultTechnique, Vector3 cameraPosition, Matrix viewProjection, LightList lights) { if (game == null) { throw new ArgumentNullException("game"); } if (technique == RenderTechnique.ViewMapping) { game.DrawModel(gd, model, technique, cameraPosition, transform, viewProjection, null); } else { game.DrawModel(gd, model, defaultTechnique, cameraPosition, transform, viewProjection, lights); } }