private void Display(NarrativeElement element) { Debug.Log("Displaying relevant narrative element"); PopupTextManager clone = Instantiate(GizmoPrefab, GameObject.FindGameObjectWithTag("MainCamera").transform).GetComponentInChildren <PopupTextManager>(); clone.PopupTexts = element.Texts; clone.Init(); clone.DoEnterAnimation(); }
//Makes dialogue reappear when clicking on an inspected golem public void ReshowDialogue() { readingDialogue = true; List <string> selectedDialogue; switch (golemSelected.name) { case "TrueRubyGolem": selectedDialogue = rubyGolemDialogue; break; case "TrueAmethystGolem": selectedDialogue = amethystGolemDialogue; break; case "TrueSapphireGolem": selectedDialogue = sapphireGolemDialogue; break; case "TrueEmGolemv1": selectedDialogue = emeraldGolemDialogue; break; default: selectedDialogue = rubyGolemDialogue; break; } PopupTextManager clone = Instantiate(gizmoPrefab, GameObject.FindGameObjectWithTag("MainCamera").transform).GetComponentInChildren <PopupTextManager>(); clone.PopupTexts = selectedDialogue; clone.Init(); clone.DoEnterAnimation(); hallFunctionality.MoveCameraBackButton.SetActive(false); PopupTextManager.onClose += () => ReenableButton(); }