Pauses TopDown and/or disables player input during conversations. More...
Public Member Functions | |
virtual void | Pause () |
virtual void | Unpause () |
Public Attributes | |
bool | pauseDuringConversations = true |
bool | disableInputDuringConversations = true |
string[] | floatAnimatorParametersToStop = new string[] { "Speed" } |
string[] | boolAnimatorParametersToStop = new string[] { "Walking", "Running", "Jumping" } |
Protected Member Functions | |
virtual void | OnConversationStart (Transform actor) |
Pauses TopDown and/or disables player input during conversations.
If you add it to the Dialogue Manager, it will affect all conversations. If you add it to a player, it will only affect conversations that the player is involved in.
You can also add a copy of this component to a quest log window. Configure OnOpen() to call Pause and OnClose() to call Unpause. Untick the quest log window's Pause While Open and Unlock Cursor While Open checkboxes since this script will handle it.
You can add an MMCursorVisible component to the dialogue UI's Dialogue Panel or quest log window's Main Panel to show the cursor while open.
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
string [] PixelCrushers.DialogueSystem.TopDownEngineSupport.PauseTopDownDuringConversations.boolAnimatorParametersToStop = new string[] { "Walking", "Running", "Jumping" } |
bool PixelCrushers.DialogueSystem.TopDownEngineSupport.PauseTopDownDuringConversations.disableInputDuringConversations = true |
string [] PixelCrushers.DialogueSystem.TopDownEngineSupport.PauseTopDownDuringConversations.floatAnimatorParametersToStop = new string[] { "Speed" } |
bool PixelCrushers.DialogueSystem.TopDownEngineSupport.PauseTopDownDuringConversations.pauseDuringConversations = true |