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

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