Single Continue Button
Posted: Wed Nov 08, 2023 12:44 pm
Hi!
What would be the best way to set up a single continue button that can handle 3 or more subtitle panels? I have a narrator/player/npc panel. My continue button has a lot going on and would like to only have one in my hierarchy. Like a central continue button rather than one on each panel. Thanks!
also how would I add the Continue sequence logic to my default sequence for this following if(currentSpeaker == "LOGIC")?
What would be the best way to set up a single continue button that can handle 3 or more subtitle panels? I have a narrator/player/npc panel. My continue button has a lot going on and would like to only have one in my hierarchy. Like a central continue button rather than one on each panel. Thanks!
also how would I add the Continue sequence logic to my default sequence for this following if(currentSpeaker == "LOGIC")?
Code: Select all
private DialogueCutsceneManager dialogueCutsceneManager;
public void Awake()
{
dialogueCutsceneManager = DialogueCutsceneManager.Instance;
MySubtitlePanel.TypewriterDelay = GetParameterAsFloat(0);
currentSpeaker = ParseSpeakerFromEntryTag(GetParameter(2));
if (dialogueCutsceneManager != null)
{
dialogueCutsceneManager.SetCurrentActor(currentSpeaker);
dialogueCutsceneManager.HandleCurrentActorDialogue();
}
else
{
Debug.LogError("DialogueCutsceneManager not found in the scene.");
}
if(currentSpeaker == "LOGIC")
{
//add same logic as sequencer command "Continue();"
}
if (DialogueDebug.logInfo) Debug.Log(string.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}: Sequencer: Delay({1})", new System.Object[] { DialogueDebug.Prefix, GetParameterAsFloat(1) }));
}