private void Start() { _label = FindObjectOfType <AssistantLabel>(); _dint = GetComponent <DialogueInterface>(); _db = GetComponent <Database>(); _triggers = new Dictionary <TriggerDialogue, GameObject>(); GameObject[] gos = GameObject.FindGameObjectsWithTag("DialogueTriggerTag"); foreach (GameObject go in gos) { TriggerDialogue diag = go.GetComponent <TriggerDialogue>(); if (diag != null) { _triggers.Add(diag, go); } } }
// Use this for initialization void Start() { _assist = GameObject.FindGameObjectWithTag("AssistLabel").GetComponent <AssistantLabel>(); }
private void Start() { _dint = FindObjectOfType <DialogueInterface>(); _label = FindObjectOfType <AssistantLabel>(); _logic = FindObjectOfType <MetaLogic>(); }