//======= Copyright (c) Valve Corporation, All rights reserved. =============== // // Purpose: UIElement that responds to VR hands and generates UnityEvents // //============================================================================= using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; using System; namespace Valve.VR.InteractionSystem { //------------------------------------------------------------------------- [RequireComponent( typeof( Interactable ) )] public class UIElement : MonoBehaviour { public CustomEvents.UnityEventHand onHandClick; protected Hand currentHand; //------------------------------------------------- protected virtual void Awake() { Button button = GetComponent