private void UpdateAddExp() { var tableManager = initData.TableManager; addMaterialExp = 0; foreach (var materialCardSlotData in materialCardSlotDataList) { var tier = materialCardSlotData.CardData.UserCard.Tier; var levelTier = tableManager.CardTierList.FirstOrDefault(d => d.Tier == tier); addMaterialExp += levelTier.MaterialExp; } previewCardData.UserCard.TotalExp = initData.SelectedTargetData.CardData.UserCard.TotalExp + addMaterialExp; previewCardData.OnUpdateUserCard(tableManager); previewCardFrame.ApplyCardData(previewCardData); view.ApplyPreviewCardData(initData.SelectedTargetData.CardData, previewCardData, addMaterialExp); }
protected override void OnSetData(MaterialCardSlotData data) { view.ApplyMaterialCardSlotData(data); cardFrame.ApplyCardData(data.CardData); }
protected override void OnSetData(MyCardSlotData data) { cardFrame.ApplyCardData(data.CardData); }