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]); } }
private void OnCellShopDisabled(CellShop cellShop) { cellShop.CellFullViewSelected -= OnCellShopSelected; cellShop.CellDisabled -= OnCellShopDisabled; }
private void OnCellShopBuy(Card card, CellShop cellShop) { TrySellCard(card, cellShop); }