Exemplo n.º 1
0
 public static CardTextureHelper getInstance()
 {
     if (instance == null)
     {
         instance = new CardTextureHelper();
     }
     return(instance);
 }
Exemplo n.º 2
0
 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();
 }