123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.EventSystems;
- namespace CompassNavigatorPro {
- public class CompassIconEventHandler : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler, IPointerDownHandler, IPointerUpHandler {
- public CompassProPOI poi;
- public CompassPro compass;
- public void OnPointerEnter (PointerEventData eventData) {
- if (compass != null) {
- compass.BubbleEvent (compass.OnPOIMiniMapIconMouseEnter, poi);
- }
- }
- public void OnPointerExit (PointerEventData eventData) {
- if (compass != null) {
- compass.BubbleEvent (compass.OnPOIMiniMapIconMouseExit, poi);
- }
- }
- public void OnPointerClick (PointerEventData eventData) {
- if (compass != null) {
- compass.BubbleEvent (compass.OnPOIMiniMapIconMouseClick, poi);
- }
- }
- public void OnPointerDown (PointerEventData eventData) {
- if (compass != null) {
- compass.BubbleEvent (compass.OnPOIMiniMapIconMouseDown, poi);
- }
- }
- public void OnPointerUp (PointerEventData eventData) {
- if (compass != null) {
- compass.BubbleEvent (compass.OnPOIMiniMapIconMouseUp, poi);
- }
- }
- }
- }
|