12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using UnityEngine;
- using UnityEngine.EventSystems;
- namespace Rokid.UXR.Interaction
- {
- /// <summary>
- /// Triggered when the mouse enters
- /// </summary>
- public interface IMouseEnter
- {
- void OnMouseEnter();
- }
- /// <summary>
- /// Triggered when the mouse exits
- /// </summary>
- public interface IMouseExit
- {
- void OnMouseExit();
- }
- /// <summary>
- /// Triggered when mouse drag starts
- /// </summary>
- public interface IMouseBeginDrag
- {
- void OnMouseBeginDrag(PointerEventData eventData);
- }
- /// <summary>
- /// Triggered when the mouse drag ends
- /// </summary>
- public interface IMouseEndDrag
- {
- void OnMouseEndDrag();
- }
- /// <summary>
- /// Triggered when mouse dragging
- /// </summary>
- public interface IMouseDrag
- {
- void OnMouseRayDrag(Vector3 delta);
- }
- /// <summary>
- /// Triggered when mouse hovering
- /// </summary>
- public interface IMouseHover
- {
- void OnMouseHover();
- }
- /// <summary>
- /// Triggered when the mouse clicks
- /// </summary>
- public interface IMouseClick
- {
- void OnMouseClick();
- }
- }
|