2025-05-12 18:11:43 +09:00
|
|
|
using System;
|
|
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.EventSystems;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using XRLib.UI;
|
|
|
|
|
|
2025-05-20 16:25:58 +09:00
|
|
|
namespace Studio.UI
|
2025-05-12 18:11:43 +09:00
|
|
|
{
|
|
|
|
|
public class UI_QuickStartItem : UIBase, IPointerDownHandler
|
|
|
|
|
{
|
|
|
|
|
public TextMeshProUGUI Text_Name;
|
|
|
|
|
|
|
|
|
|
public Action onClickButton;
|
|
|
|
|
|
|
|
|
|
public void Init(string name, Action clickEvent)
|
|
|
|
|
{
|
|
|
|
|
Text_Name.text = name;
|
|
|
|
|
onClickButton = clickEvent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnPointerDown(PointerEventData eventData)
|
|
|
|
|
{
|
|
|
|
|
onClickButton?.Invoke();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|