using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class ItemImageController : MonoBehaviour, IPointerClickHandler { public void OnPointerClick(PointerEventData eventData) { if (null != GetComponent()) GetComponent().Interaction(); } }