private void SelectCard(CardBase card) { if (BuildCards != null) { BuildCards.CardSelectInfos[card.CardInfo.CardID].CardSelectUpperLimit++; int count = BuildCards.CardSelectInfos[card.CardInfo.CardID].CardSelectUpperLimit; CardSelectPanel.RefreshCard(card.CardInfo.CardID, count); Row_CardSelection.Refresh(); } }
private void OnStartSelectCard(bool isShow, int refreshCardID, int refreshCardCount, SelectCardContents selectCardContents) { M_SelectCardContents = selectCardContents; CardSelectPanel.SwitchSingleSelect(selectCardContents != SelectCardContents.SelectDeckCards); CardSelectPanel.RefreshCard(refreshCardID, refreshCardCount); CardSelectPanel.SetCardLibraryPanelEnable(isShow); }
private void SelectCard(CardBase card) { switch (M_SelectCardContents) { case SelectCardContents.SelectDeckCards: { Enemy_BuildCards.CardSelectInfos[card.CardInfo.CardID].CardSelectCount++; int count = Enemy_BuildCards.CardSelectInfos[card.CardInfo.CardID].CardSelectCount; CardSelectPanel.RefreshCard(card.CardInfo.CardID, count); Row_CardSelection.Refresh(); break; } case SelectCardContents.SelectBonusCards: { CardSelectPanel.SetCardLibraryPanelEnable(false); Row_BonusGroups.OnCurEditBonusUnlockCardChangeCard(card.CardInfo.CardID); Row_BonusGroups.Refresh(); StartCoroutine(ClientUtils.UpdateLayout((RectTransform)LevelPropertiesContainer)); break; } } }
private void UnSelectAllActiveCards(List <int> activeCardIDs) { if (Enemy_BuildCards != null) { foreach (int cardID in activeCardIDs) { BuildCards.CardSelectInfo csi = Enemy_BuildCards.CardSelectInfos[cardID]; csi.CardSelectCount = 0; csi.CardSelectUpperLimit = 0; CardSelectPanel.RefreshCard(cardID, 0); } Row_CardSelection.Refresh(); } }
private void SelectOneForEachActiveCards(List <int> activeCardIDs) { if (Enemy_BuildCards != null) { foreach (int cardID in activeCardIDs) { BuildCards.CardSelectInfo csi = Enemy_BuildCards.CardSelectInfos[cardID]; csi.CardSelectCount++; int count = csi.CardSelectCount; CardSelectPanel.RefreshCard(cardID, count); } Row_CardSelection.Refresh(); } }