public void LevelUpCard(Card card) { int cardIndex = CardPrototypesAccessor.FindIndexOnPrototypesArray(card); cardsLevel[cardIndex]++; CardPrototypesAccessor.UpdatePrototypesLevel(); }
public int GetLevelOfCard(Card card) { int index = CardPrototypesAccessor.FindIndexOnPrototypesArray(card); int cardLevel = cardsLevel[index]; return(cardLevel); }