Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
OnPauseButtonDeactivation Event
Example 
Event provided for extensibility of default InputActions. Intended to be used when the Pause Button represents an "on / off" toggle, with one InputAction toggling it on (and therefore firing OnPauseButtonActivation) and a different InputAction toggling it off (and thus firing OnPauseButtonDeactivation).
Syntax
public event EventManager.PauseButtonDeactivation OnPauseButtonDeactivation
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnPauseButtonDeactivation += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnPauseButtonDeactivation -= myCustomListener;
    }
    
    void myCustomListener() {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback