Files
ft/Client/Assets/Scripts/EventOfferJourney/EventOfferJourneyTipView.cs
2026-06-29 21:18:33 +08:00

23 lines
691 B
C#

using asap.core;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class EventOfferJourneyTipView : MonoBehaviour
{
[SerializeField] private Button btnClose;
[SerializeField] private TMP_Text[] textTicketNums;
private void Start()
{
if (btnClose != null)
btnClose.onClick.AddListener(() =>
{
gameObject.SetActive(false);
});
var data = GContext.container.Resolve<IEventOfferJourneyData>();
if (data == null)
return;
textTicketNums[0].text = data.GetTicketRewardArray()[0].ToString();
textTicketNums[1].text = data.GetTicketRewardArray()[1].ToString();
}
}