Immerseum.VRSimulator Namespace > EventManager Class : OnSecondaryButtonDeactivation Event |
public event EventManager.SecondaryButtonDeactivation OnSecondaryButtonDeactivation
public class myClass : MonoBehaviour { void OnEnable() { EventManager.OnSecondaryButtonDeactivation += myCustomListener; } void OnDisable() { EventManager.OnSecondaryButtonDeactivation -= myCustomListener; } void myCustomListener() { // Custom listener logic goes here. } }