23 lines
482 B
C#
23 lines
482 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using UnityEngine.UI;
|
|
|
|
public class Underneath : MonoBehaviour
|
|
{
|
|
public Button settingBtn;
|
|
public Text subjectName;
|
|
|
|
public void SetValue(string name,Action callback)
|
|
{
|
|
subjectName.text = name;
|
|
settingBtn.onClick.AddListener(() =>
|
|
{
|
|
Debug.Log("ewewewew");
|
|
callback?.Invoke();
|
|
});
|
|
}
|
|
}
|