示例#1
0
    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);
    }
示例#2
0
 protected override void OnSetData(MaterialCardSlotData data)
 {
     view.ApplyMaterialCardSlotData(data);
     cardFrame.ApplyCardData(data.CardData);
 }
示例#3
0
 protected override void OnSetData(MyCardSlotData data)
 {
     cardFrame.ApplyCardData(data.CardData);
 }