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