public void AddCard() { if (CanWeAddThisCard() == true) { cardInfo.CardInfoPanelHide(); MyDeck.AddCardToDeck(currentCard); PlayerInfo.playerCardInventory[currentCard]--; UpdateAvailableCardsGrid(); PopulateDeckGrid(currentCard); } else { showMessage = true; } }