public void selectCharacter() { if (!speechCanvas.gameObject.activeInHierarchy) { //Setar os valores do canvas SpeechManager sm = speechCanvas.GetComponent <SpeechManager>(); sm.OpenCharacterDialog(this); } }