Exemplo n.º 1
0
 private void TrySellCard(Card card, CellShop cellShop)
 {
     if (card.Price <= DataBase.Instance.Money)
     {
         DataBase.Instance.BuyCard(card);
         cellShop.CellBuySelected -= OnCellShopBuy;
         _cellCountShopCards--;
         OnCellShopCardUpdate();
         OnCellShopSelected(DataBase.Instance.ShopCards[0]);
     }
 }
Exemplo n.º 2
0
 private void OnCellShopDisabled(CellShop cellShop)
 {
     cellShop.CellFullViewSelected -= OnCellShopSelected;
     cellShop.CellDisabled         -= OnCellShopDisabled;
 }
Exemplo n.º 3
0
 private void OnCellShopBuy(Card card, CellShop cellShop)
 {
     TrySellCard(card, cellShop);
 }