Esempio n. 1
0
    /// <summary>
    /// Gets the singleton pattern instance.</summary>
    public static AnviDialogue getInstance()
    {
        if (inst == null)
        {
            inst = new AnviDialogue();
        }

        return(inst);
    }
Esempio n. 2
0
 // 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();
 }