// Use this for initialization void Start() { levelManager = GameObject.FindObjectOfType <LevelManager>(); diaManager = GameObject.FindObjectOfType <DialogueManager>(); diaScript = gameObject.GetComponent <DialogueScript>(); if (diaScript != null) { currDialogue = diaScript.getDialogues()[gameObject.tag]; } } //end of start