using System; using UnityEngine; namespace UDE_HAND_INTERACTION { public enum DetectorEventType { Hover, Unhover, Select, Unselect, Move, Cancel } public struct DetectorEvent { public int Identifier { get; } public DetectorEventType Type { get; } public Pose Pose { get; } public object Data { get; } public DetectorEvent(int identifier, DetectorEventType type, Pose pose, object data = null) { Identifier = identifier; Type = type; Pose = pose; Data = data; } } public interface IDetectable { event Action WhenDetectorEventRaised; } public interface IDetectableElement : IDetectable { void ProcessDetectorEvent(DetectorEvent evt); } }