public Sprite(string spriteName, float x, float y, float width, float height, SKPaint paint = null) : base(x, y, width, height) { if (paint == null) { _paint = new SKPaint(); _paint.Color = new SKColor(255, 255, 255); _paint.IsAntialias = false; } else { _paint = paint; } _baseColor = _paint.Color; var spriteData = SpriteLoader.Instance.GetData(spriteName); _spriteModel = new SpriteModel(spriteData); }
public void UpdateSprite(string spriteName) { var spriteData = SpriteLoader.Instance.GetData(spriteName); _spriteModel = new SpriteModel(spriteData); }