// Use this for initialization void Awake() { dialogueObject = GameObject.Find("Dialogue"); dialogueRunnerScript = dialogueObject.GetComponent <Yarn.Unity.DialogueRunner>(); ludumDialogueUI = (LudumDialogueUI)dialogueRunnerScript.dialogueUI; inventoryScript = GameObject.Find("Inventory UI").GetComponent <LudumInventory>(); inventoryScript.OnScoreUpdate += EvaluateScore; dispenserInventory = GameObject.Find("DispenserInventory").GetComponent <LudumInventory>(); timerSlider = GameObject.Find("TimerSlider").GetComponent <Slider>(); timerSlider.gameObject.SetActive(false); timerSlider.maxValue = maxTime; //StartCoroutine(StartDialogue()); }
void Awake() { // Start by hiding the container, line and option buttons if (dialogueContainer != null) { dialogueContainer.SetActive(false); } lineText.gameObject.SetActive(false); foreach (var button in optionButtons) { button.gameObject.SetActive(false); } // Hide the continue prompt if it exists if (continuePrompt != null) { continuePrompt.SetActive(false); } dispenserInventory = GameObject.Find("DispenserInventory").GetComponent <LudumInventory>(); }