using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class VoiceFace : MonoBehaviour,IPointerClickHandler{
///
/// 实现接口成员方法
///
/// Event data.
public void OnPointerClick(PointerEventData eventData){
print("点击了");
}
}
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class VoiceFace : MonoBehaviour,IPointerClickHandler{
///
/// 实现接口成员方法
///
/// Event data.
public void OnPointerClick(PointerEventData eventData){
print("点击了");
}
}