// Listen for button updates public void AddRefreshListener(UnityEngine.Events.UnityAction OnRefresh) { if (refreshEvent == null) { refreshEvent = new SteamVR_Events.Event(); } refreshEvent.Listen(OnRefresh); }
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); }
public ActionNoArgs(SteamVR_Events.Event _event, UnityAction action) { this._event = _event; this.action = action; }