You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
631 B
22 lines
631 B
1 year ago
|
using AX.ImageViewer;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.EventSystems;
|
||
|
|
||
|
public class ImageController : MonoBehaviour, IPointerClickHandler
|
||
|
{
|
||
|
public void OnPointerClick(PointerEventData eventData)
|
||
|
{
|
||
|
if (eventData.clickCount == 1)
|
||
|
{
|
||
|
switch (eventData.button)
|
||
|
{
|
||
|
case PointerEventData.InputButton.Right:
|
||
|
ImageViewer.Instance.Hide();
|
||
|
MessageBox.Show("确认清除该节点中的图片?", Color.white, transform.parent.GetComponent<NodeController>().ClearImage);
|
||
|
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|