void Awake() { objName = "Door"; interactText = "Escape this nightmare."; narrationText = FindObjectOfType <NarrationText>(); }
IEnumerator SetNarrationText(string _name) { narrationText.text = NarrationText.GetNarrationText(_name); yield return(StartCoroutine(corNarrationStartAnim())); }
// Start is called before the first frame update void Start() { player = playerObject.GetComponent <PlayerEngine>(); narrationText = FindObjectOfType <NarrationText>(); }