public void Start() { resource = GameObject.Find("Canvas-Resources").GetComponent <ResourceManager>(); //Load in the resource manager from our Scene in Unity. task = GameObject.Find("Canvas-ActiveTask").GetComponent <ActiveTask>(); caption = transform.GetComponent <Narrate.ProximityNarrationTrigger>(); }
void Start() { dialog = GetComponent <Narrate.ProximityNarrationTrigger>(); GetComponent <SphereCollider>().radius = dialog.proximity; // Get the duration of the last narration of the game timeToFinish = dialog.theNarration.phrases[0].duration; }