예제 #1
0
 public static CardTextureHelper getInstance()
 {
     if (instance == null)
     {
         instance = new CardTextureHelper();
     }
     return(instance);
 }
예제 #2
0
파일: Card.cs 프로젝트: liangyee/Wizard
 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();
 }