28 lines
575 B
C#
28 lines
575 B
C#
using System;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.UI;
|
|
using XRLib.UI;
|
|
|
|
namespace Studio.UI
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|