Difference between revisions of "DisplayStateManager"
From Headbone Creative
(Initial page, includes API information and categories) |
Latest revision as of 23:02, 15 April 2013
This class maintains a list of DisplayStateListeners and will notify them when the display state changes.
Contents |
[edit] Public Variables
[edit] stateMachineID : string
This is the ID of the state machine. Only listeners with this ID will care about state updates from this script. This is done to support multiple instances of the display state mechanism in the same scene.
[edit] State : string
This is the current display state. When it is set, all listeners are updated with the new state.
[edit] Public Functions
[edit] void UpdateDisplayStateListeners ()
This updates the list of display state listeners by finding all listeners in the current scene.
[edit] void SetState (string newState)
This saves the new state, and updates all of the listeners with the new state.