CutsceneDisplayStateManager
From Headbone Creative
This class interfaces with the DisplayStateManager to show a different display state based upon the current cutscene.
Contents |
Public Variables
config : List<CutsceneConfig>
This is a list of objects that define what display state should be set for different cutscenes. The objects in this list contain two members:
public class CutsceneConfig { public string cutsceneName = ""; public string displayStateToUse = ""; }
cutsceneName : string
This is the name of the cutscene that is passed into the PlayCutscene function (below).
displayStateToUse : string
This is the name of the state to set in the DisplayStateManager.
Public Functions
bool CutsceneExists (string name)
This returns true or false, depending if a CutsceneConfig with the given name was found in the list.
void PlayCutscene (string name)
This will call into the DisplayStateManager to set the new state, if a cutscene with the given name was found in the list.