// Listen for button updates
        public void AddRefreshListener(UnityEngine.Events.UnityAction OnRefresh)
        {
            if (refreshEvent == null)
            {
                refreshEvent = new SteamVR_Events.Event();
            }

            refreshEvent.Listen(OnRefresh);
        }
示例#2
0
 public static SteamVR_Events.Event <VREvent_t> System(EVREventType eventType)
 {
     SteamVR_Events.Event <VREvent_t> @event;
     if (!SteamVR_Events.systemEvents.TryGetValue(eventType, out @event))
     {
         @event = new SteamVR_Events.Event <VREvent_t>();
         SteamVR_Events.systemEvents.Add(eventType, @event);
     }
     return(@event);
 }
示例#3
0
 public ActionNoArgs(SteamVR_Events.Event _event, UnityAction action)
 {
     this._event = _event;
     this.action = action;
 }