2020
04.04

 

 

public class CloneButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerClickHandler
{
    [SerializeField] Button Btn_Ref;

    public void OnPointerDown(PointerEventData eventData)
    {
        ExecuteEvents.Execute(Btn_Ref.gameObject, eventData, ExecuteEvents.pointerDownHandler);
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        ExecuteEvents.Execute(Btn_Ref.gameObject, eventData, ExecuteEvents.pointerUpHandler);
    }

    public void OnPointerClick(PointerEventData eventData)
    {
        ExecuteEvents.Execute(Btn_Ref.gameObject, eventData, ExecuteEvents.submitHandler);
    }
}

 

COMMENT