public static void StartDialogue(string theScene, DialogInstructionSet dialogInstructionSet) { if (dialogueManager != null) { dialogueManager.PrivateStartDialogue(theScene, dialogInstructionSet); } else { Debug.LogError("There is no \"DialogManager\" set on a dialog box!\nDid you add one to the scene?"); } }
void PrivateStartDialogue(string cutscene, DialogInstructionSet dialogInstructionSet) { if (dialogInstructionSet != null) { foreach (KeyValuePair <string, DialogInstructionSet.ActionFunction> actionFunction in dialogInstructionSet.actionFunctions) { actionFunctions.Add(actionFunction.Key, actionFunction.Value); } } else { actionFunctions.Clear(); } PrivateStartDialogue(cutscene); }