Esempio n. 1
0
    private void Update()
    {
        if (onPressEvents && action.GetDown())
        {
            onPress.Invoke();
        }

        if (onHoldEvents && action.Get())
        {
            onHold.Invoke();
        }

        if (onReleaseEvents && action.GetUp())
        {
            onRelease.Invoke();
        }
    }