Пример #1
0
    /// <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;
    }
Пример #2
0
	/// <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;

	}