29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
using UnityEngine;
|
|
using TMPro;
|
|
using GameCore;
|
|
using asap.core;
|
|
|
|
public class EventPartnerStatueInfoPanelRewardView : MonoBehaviour
|
|
{
|
|
// [SerializeField] private RewardItemNew[] rewards;
|
|
[SerializeField] private TMP_Text text_info, text_tip_bottom;
|
|
private void Awake()
|
|
{
|
|
var arc = GContext.container.Resolve<EventPartnerStatueArc>();
|
|
// var rewardItems = arc.TableContext.GetFinalRewardList();
|
|
// for (int i = 0; i < rewards.Length; i++)
|
|
// {
|
|
// rewards[i].SetData(rewardItems[i]);
|
|
// }
|
|
var tokenName = arc.TableContext.GetTokenName();
|
|
text_info.text = LocalizationMgr.GetFormatTextValue("UI_COMMON_eventicon_get3", tokenName);
|
|
text_tip_bottom.text = LocalizationMgr.GetFormatTextValue("UI_EventSandDigPanel_7", tokenName);
|
|
}
|
|
|
|
private void Reset()
|
|
{
|
|
text_info = transform.Find("root/info1/text_info").GetComponent<TMP_Text>();
|
|
text_tip_bottom = transform.Find("root/text_tips").GetComponent<TMP_Text>();
|
|
}
|
|
}
|