Exemple #1
0
    public void RemoveAmountOfCardFromCollection(Card card, int amountToRemove)
    {
        int index = GetIndexOfCard(card);

        amountOfEachCard[index] -= amountToRemove;
        CardsCollection.SumToCurrentAmount(card, -amountToRemove);
    }
Exemple #2
0
 private void GiveRewardDeckThenSeeMap(Card[] rewardDeck)
 {
     for (int r = 0; r < rewardDeck.Length; r++)
     {
         CardsCollection.SumToCurrentAmount(rewardDeck[r], 1);
     }
     QuitBattleAndGoToMap();
 }
Exemple #3
0
 private void AddCardClosePopUpClearSpot(int cardIndex)
 {
     CardsCollection.SumToCurrentAmount(cards[cardIndex], 1);
     openerOfPopUpsMadeInEditor.CloseAllPopUpsExceptLoading();
     sceneOpener.OpenMapScene();
 }
Exemple #4
0
 private void Give3CardsThenSeeMap()
 {
     CardsCollection.SumToCurrentAmount(PlayerAndEnemyDeckHolder.GetPreparedCardsForTheEnemy()[0], 3);
     QuitBattleAndGoToMap();
 }