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.
21 lines
631 B
21 lines
631 B
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; |
|
} |
|
} |
|
} |
|
}
|
|
|