Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        dialogtree = new DialogImporter();
        if (dialogfile != null)
        {
            dialogtree.ReadTree(dialogfile);
        }

        Interatables.Insert(0, gameObject);

        profileDict = profile.ToDictionary();
    }
 // Start is called before the first frame update
 void Start()
 {
     di             = GetComponent <DialogImporter>();
     gd             = di.GameDialog;
     MasterCopies   = GameObject.Find("MasterCopies");
     AM             = GameObject.Find("Audio Manager").GetComponent <AudioManager>();
     actions        = GetComponent <Actions>();
     monologue      = GameObject.FindGameObjectWithTag("Monologue");
     continueButton = GameObject.FindGameObjectWithTag("Continue Button");
     OptionA        = GameObject.FindGameObjectWithTag("2Option1");
     OptionB        = GameObject.FindGameObjectWithTag("2Option2");
     Option1        = GameObject.FindGameObjectWithTag("4Option1");
     Option2        = GameObject.FindGameObjectWithTag("4Option2");
     Option3        = GameObject.FindGameObjectWithTag("4Option3");
     Option4        = GameObject.FindGameObjectWithTag("4Option4");
     portraitGO     = GameObject.FindGameObjectWithTag("Portrait");
     actions.getStarted();
     StartDialogue();
 }
Exemple #3
0
 public void StartDialog(TextAsset dialog, List <GameObject> interactables = null)
 {
     gameObject.SetActive(true);
     dialogfile   = dialog;
     Interatables = new List <GameObject>(interactables);
     if (Interatables == null)
     {
         Interatables = new List <GameObject>();
     }
     Interatables.Insert(0, gameObject);
     dialogtree = new DialogImporter();
     if (dialogfile != null)
     {
         dialogtree.ReadTree(dialogfile);
     }
     active = true;
     if (onStart != null)
     {
         onStart();
     }
 }