using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class MyButtonHandler : MonoBehaviour, IPointerDownHandler
{
public void OnPointerDown(PointerEventData eventData)
{
f1();
}
private void f1()
{
gameObject.GetComponent<Button>().onClick.Invoke();
}
}
可以用如上方法重新调用一次点击事件