DisplayStateManager
From Headbone Creative
Revision as of 23:02, 15 April 2013 by Tyson Joehler (Talk | contribs)
This class maintains a list of DisplayStateListeners and will notify them when the display state changes.
Contents |
Public Variables
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.
State : string
This is the current display state. When it is set, all listeners are updated with the new state.
Public Functions
void UpdateDisplayStateListeners ()
This updates the list of display state listeners by finding all listeners in the current scene.
void SetState (string newState)
This saves the new state, and updates all of the listeners with the new state.