- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class TestMyButton : MonoBehaviour
- {
- public MyButton myButton;
- // Start is called before the first frame update
- void Start()
- {
- myButton.onClick.AddListener(()=> {Debug.Log(" myButton.onClick");});
- myButton.OnDoubleClick.AddListener(() => {Debug.Log(" myButton.OnDoubleClick");});
- myButton.OnLongPress.AddListener(() => {Debug.Log(" myButton.OnLongPress");});}
- // Update is called once per frame
- void Update(){}
- }
|