Ejemplo n.º 1
0
        protected override void HoverEnd(InteractiveHandle target, HoverEndInfo info)
        {
            if (target != m_Handle)
            {
                return;
            }

            SyncColor();
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 void Awake()
 {
     m_ThisRenderer = GetComponent <Renderer>();
     m_Handle       = GetComponent <InteractiveHandle>();
 }
Ejemplo n.º 5
0
 public void SetHover(InteractiveHandle handle)
 {
     m_Interaction.SetHovered(handle);
 }