ChineseWordBtn.cs 358 B

123456789101112131415
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.Events;
  5. using UnityEngine.EventSystems;
  6. public class ChineseWordBtn : MonoBehaviour, IPointerDownHandler
  7. {
  8. public UnityEvent onClick = new UnityEvent();
  9. public void OnPointerDown(PointerEventData eventData)
  10. {
  11. onClick?.Invoke();
  12. }
  13. }