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