35 lines
691 B
C#
35 lines
691 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using XED.UI;
|
|
|
|
namespace XED
|
|
{
|
|
public class UI_BaseDataButton : MonoBehaviour
|
|
{
|
|
public Panel_Repository panel_Repository;
|
|
|
|
Button button;
|
|
TextMeshProUGUI buttonName;
|
|
|
|
private void Awake()
|
|
{
|
|
button = GetComponent<Button>();
|
|
buttonName = GetComponentInChildren<TextMeshProUGUI>();
|
|
|
|
button.onClick.AddListener(OnClickButton);
|
|
}
|
|
|
|
void OnClickButton()
|
|
{
|
|
panel_Repository.ShowInformation_BaseInfo();
|
|
}
|
|
|
|
public void SetButtonName(string name)
|
|
{
|
|
buttonName.text = name;
|
|
|
|
}
|
|
}
|
|
}
|