/// <summary> /// Gets the singleton pattern instance.</summary> public static AnviDialogue getInstance() { if (inst == null) { inst = new AnviDialogue(); } return(inst); }
// Set up instances of Character Dialogue classes private void Start() { characterDialogues["Anvi"] = AnviDialogue.getInstance(); characterDialogues["Brange"] = BrangeDialogue.getInstance(); characterDialogues["Charles"] = CharlesDialogue.getInstance(); characterDialogues["Maurice"] = MauriceDialogue.getInstance(); characterDialogues["Mi Na"] = MiNaDialogue.getInstance(); characterDialogues["Sam"] = SamDialogue.getInstance(); }