Immerseum.VRSimulator Namespace > EventManager Class : OnSecondaryTriggerDeactivation Event |
If default InputActions are enabled, fired when the default toggleSecondaryTriggerInputAction has been received and MovementManager.isSecondaryTriggerInUse is true.
public event EventManager.SecondaryTriggerDeactivation OnSecondaryTriggerDeactivation
public class myClass : MonoBehaviour { void OnEnable() { EventManager.OnSecondaryTriggerDeactivation += myCustomListener; } void OnDisable() { EventManager.OnSecondaryTriggerDeactivation -= myCustomListener; } void myCustomListener(InputAction action) { // Custom listener logic goes here. } }