public override void Draw() { if (Visible) { backgroundImage.Draw(transform.GetPosition(), width, height, color, transform.GetRotation(), transform.GetPivot(), transform.GetScale(), SpriteEffects.None, layerDepth); } }
public virtual void Draw() { if (sprite) { sprite.Draw(); } #if UNITY_EDITOR DrawHitboxes(); #endif }
public override void Draw() { if (Visible) { // If it is monocolored if (backgroundImage == null) { primitiveDrawing.Begin(PrimitiveType.TriangleList); primitiveDrawing.AddVertices(vertices, color); primitiveDrawing.End(); } // If it has an image else { backgroundImage.Draw(transform.GetPosition(), width, height, color, transform.GetRotation(), transform.GetPivot(), transform.GetScale(), SpriteEffects.None, layerDepth); } } }
public override void Draw(GameTime gameTime, SpriteBatch spriteBatch) { SpriteComponent.Draw(gameTime, spriteBatch); }