Ejemplo n.º 1
0
 private static void SetHover(HoverCard hover, Card card, bool isThumb)
 {
     hover.Attack  = card.Stats.Atk;
     hover.Hp      = card.Stats.Hp;
     hover.Type    = card.Type;
     hover.Image   = card.Image;
     hover.IsThumb = isThumb;
 }
Ejemplo n.º 2
0
 private void RemoveCard(string cardName)
 {
     if (!_cardList.ContainsKey(cardName))
     {
         return;
     }
     if (_cardList[cardName] > 1)
     {
         _cardList[cardName]--;
         _cardObjects[cardName].Count.text = _cardList[cardName].ToString();
     }
     else
     {
         _cardList.Remove(cardName);
         Destroy(_cardObjects[cardName].gameObject);
         _cardObjects.Remove(cardName);
         HoverCard.DeleteHover();
     }
     UpdateProgress();
 }