/// <summary> /// Creates the dialog objects. /// </summary> public void createDialogObjects() { dialogSpeakerText = Instantiate(dialogSpeakerText) as GUIText; dialogSpeakerText.transform.position = speakerTextPos; dialogText = Instantiate(dialogText) as GUIText; dialogText.transform.position = dialogTextPos; dialogTextWrapper = dialogText.GetComponent <WordWrapText>(); textBox = Instantiate(textBox) as Transform; textBox.transform.parent = GameObject.Find("Main Camera").transform; textBox.transform.localPosition = textBoxPos; dialogNextText = Instantiate(dialogNextText) as GUIText; dialogNextText.transform.position = dialogNextTextPos; }
/// <summary> /// Creates the dialog objects. /// </summary> public void createDialogObjects() { dialogSpeakerText = Instantiate(dialogSpeakerText) as GUIText; dialogSpeakerText.transform.position = speakerTextPos; dialogText = Instantiate(dialogText) as GUIText; dialogText.transform.position = dialogTextPos; dialogTextWrapper = dialogText.GetComponent<WordWrapText>(); textBox = Instantiate(textBox) as Transform; textBox.transform.parent = GameObject.Find("Main Camera").transform; textBox.transform.localPosition = textBoxPos; dialogNextText = Instantiate(dialogNextText) as GUIText; dialogNextText.transform.position = dialogNextTextPos; }