public virtual void Draw(GameTime gameTime) { if (Config.DisplayCollisionBoxes) { CollisionBoxes.Draw(GameRef.SpriteBatch); } }
public override void Draw(GameTime gameTime) { GameRef.SpriteBatch.Draw(Sprite, Position, null, Color.White, Direction, Origin, 1f, SpriteEffects.None, 0f); GameRef.SpriteBatch.Draw(_trail, Position, null, Color.White, Direction + (float)(Math.PI / 2f), Vector2.Zero, 1f, SpriteEffects.None, 0f); if (Config.DisplayCollisionBoxes) { CollisionBoxes.Draw(GameRef.SpriteBatch); } base.Draw(gameTime); }