public void SpeechTrigger(string type) { gameObject.SetActive(true); textbox = GetComponentInChildren <Text> (); if (type == "play") { textbox.text = speechManager.RandomPlayWord(); } else if (type == "feed") { textbox.text = speechManager.RandomFeedWord(); } else if (type == "pet" && !Pet.petMad) { textbox.text = speechManager.RandomPetWord(); } else if (type == "pet" && Pet.petMad) { textbox.text = "STOP IT!"; } StopCoroutine("deactivate"); StartCoroutine("deactivate"); }