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