public void Begin() { OpenQuestionPanel(); QuestionPanelController question = questionPanel.GetComponent <QuestionPanelController>(); question.InitialState(); }
void Awake() { // Set the text textfilePath = "Assets/Dialogue/" + textfilePath; reader = new StreamReader(textfilePath); questionScript = (QuestionPanelController)questionPanel.GetComponent(typeof(QuestionPanelController)); readNewLine(); }