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