24 lines
463 B
C#
24 lines
463 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class TESTButton : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
transform.GetComponent<Button>().onClick.AddListener(testOnclick);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
private void testOnclick()
|
|
{
|
|
Debug.Log(77777777777777777);
|
|
}
|
|
}
|