public void SetAwardItem(List <int> items, List <int> counts) { if (items == null || counts == null) { return; } if (items.Count <= 0 || counts.Count <= 0) { return; } int itemId = items[0]; int itemCount = counts[0]; DFMItemIconUtils.Instance.SetItemInfo(ItemIconType.Scene_Award2, lblAwardItem, itemId, itemCount); ItemConfig itemCfg = ItemConfigProvider.Instance.GetDataById(itemId); if (itemCfg != null) { if (texAwardItem != null) { UISceneIntroduceSlot scriptSlot = texAwardItem.GetComponent <UISceneIntroduceSlot>(); if (scriptSlot != null) { scriptSlot.SetId(itemId); } } if (lblAwardItemName != null) { lblAwardItemName.text = itemCfg.m_ItemName; } } }