备份CatanBuilding瘦身独立工程
This commit is contained in:
20
Assets/Scripts/Others/RewardFly/RewardItemTransfer.cs
Normal file
20
Assets/Scripts/Others/RewardFly/RewardItemTransfer.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using asap.core;
|
||||
using cfg;
|
||||
using GameCore;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class RewardItemTransfer : MonoBehaviour
|
||||
{
|
||||
public ExchangeItemData data;
|
||||
public Image icon;
|
||||
public TMP_Text text_num;
|
||||
public void Init(ExchangeItemData edata)
|
||||
{
|
||||
data = edata;
|
||||
var _tables = GContext.container.Resolve<Tables>();
|
||||
GContext.container.Resolve<IUIService>().SetImageSprite(icon, _tables.GetItemIconName(data.exchangeId));
|
||||
text_num.text = $"x{data.exchangeCount}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user