Exemple #1
0
        protected override void HoverEnd(InteractiveHandle target, HoverEndInfo info)
        {
            if (target != m_Handle)
            {
                return;
            }

            SyncColor();
        }
Exemple #2
0
        protected override void DragBegin(InteractiveHandle target, DragBeginInfo info)
        {
            if (target != m_Handle)
            {
                return;
            }

            SyncColor();
        }
 public Event(EventType type, InteractiveHandle target)
 {
     this.type   = type;
     this.target = target;
 }
Exemple #4
0
 void Awake()
 {
     m_ThisRenderer = GetComponent <Renderer>();
     m_Handle       = GetComponent <InteractiveHandle>();
 }
Exemple #5
0
 public void SetHover(InteractiveHandle handle)
 {
     m_Interaction.SetHovered(handle);
 }