MoTaForPSVita/Assets/Scripts/Controller/UI/ItemImageController.cs

13 lines
352 B
C#

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<IInteraction>()) GetComponent<IInteraction>().Interaction();
}
}