Cute_demon_attacks/meng_yao/Assets/TESTButton.cs
2024-10-22 22:26:05 +08:00

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);
}
}