private void SetDialogue(string name, int stage) { characterName = dialogue.transform.GetChild(0).transform.GetComponent <Text>(); characterName.text = name; typewriter = dialogue.transform.GetChild(1).gameObject.transform.GetChild(0).gameObject.GetComponent <TypewriterText>(); typewriter.fullText = DialogueSystem.GetText(name, stage); }
private void StartIntroduction() { intro.SetActive(true); introText = intro.transform.GetChild(2).transform.GetComponent <TypewriterText>(); introText.fullText = "\nDear Detective Paws,\n\nRecently, a horde of ghosts has taken\n\nup residence in my manor. Seeing as\n\nyou are the top detective, I request\n\nyour presence immediately.\n\n\t\tBest wishes, Madame Chatte."; if (Input.GetMouseButtonDown(0)) { stage = 0; intro.SetActive(false); } }
private void Start() { text = GetComponent <TypewriterText>(); if (text == null) { enabled = false; return; } if (text.DisplayType == TypewriterText.DisplyaType.OneByOne) { StartCoroutine(OneByOneTestCoroutine()); } else { StartCoroutine(SmoothFadeTestCoroutine()); } }
protected void Start() { dialogueUI = UIManager.Instance.dialogueUICanvas; typewriter = UIManager.Instance.typewriter; }