Example #1
0
 void CardAttackIns()
 {
     if (MyType == Type.Unit || MyType == Type.Hero)
     {
         MyCardAttack = CardAttackState.Can;
     }
 }
Example #2
0
 void CardStateIns()
 {
     if (MyCardState == CardState.Down)
     {
         this.gameObject.GetComponent <SpriteRenderer>().sprite = TheBack;
         MyCardAttack = CardAttackState.CanNot;
     }
 }