Exemple #1
0
    // Use this for initialization
    void Start()
    {
        dialogue               = GetComponent <DialogueInterface>();
        dialogue.baseCanvas    = GameObject.FindGameObjectWithTag("Base UI");
        dialogue.dialogueField = GameObject.FindGameObjectWithTag("Dialogue Text");
        int select   = Random.Range(0, dialogueNames.Count);
        var saveName = dialogueNames[select];

        dialogue.ResetCompletely(saveName);

        Debug.Log("INTERFACE SHOULD LOAD: " + saveName);
    }