public static CardTextureHelper getInstance() { if (instance == null) { instance = new CardTextureHelper(); } return(instance); }
public Card(RawCard raw, Vector2 position, float rotation, float scale) { this.raw = raw; this.hitbox = new LinePoly( Vector2.Zero, new Vector2(-20, -32), new Vector2(20, -32), new Vector2(20, 32), new Vector2(-20, 32) ); resize(scale - 1); blink(position); rotate(rotation); cardTextureHelper = CardTextureHelper.getInstance(); }