Example #1
0
    /// <summary>
    /// Add invoker for the trigger release event to the invoker list
    /// </summary>
    /// <param name="invoker"></param>
    public static void AddTriggerReleaseInvoker(PlayerInput invoker)
    {
        triggerReleaseInvokers.Add(invoker); // add the provided invoker to the list of invokers

        // Add all listeners to the invoker
        foreach (UnityAction <SteamVR_Input_Sources> listener in triggerReleaseListeners)
        {
            invoker.AddTriggerReleaseListener(listener);
        }
    }