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