public void LinkUI(string title, string textbox, HandleTutorial.tutState state, int index) { switch (state) { case HandleTutorial.tutState.BIG: if (this.bigTitle.text == "") { this.bigTitle.text = title; } ShowNext(); StartCoroutine(write.ShowMessage(textbox, bigTextbox)); break; case HandleTutorial.tutState.SMALL: if (this.smallTitle.text == "") { this.smallTitle.text = title; } StartCoroutine(write.ShowMessage(textbox, smallTextbox)); sceneTutorial.SetInteger("NextPart", index); break; } }
protected override void OnEnable() { // Start Dialogue animation TextMeshProUGUI textMesh = dialogue.GetComponent <TextMeshProUGUI>(); StartCoroutine(animatedText.ShowMessage(textMesh.text, textMesh)); }