dialog unity using gui

hi
i have the next code to make the dialog sistem of my game, but it doesn´t work, i don´t know why because unity not show errors, pls help

using UnityEngine;
using System.Collections;

public class dialogo : MonoBehaviour {

    public string [] botones;
    public string [] respuestas;
    public bool displaydialog=true;
    public int quest=0;
    // Use this for initialization
    void Start () {
   
    }
   
    // Update is called once per frame
    void Update () {
   
    }

    void OnGui()
    {
        GUILayout.BeginArea (new Rect (700, 600, 400, 400));
        if (displaydialog && quest == 0)
            {
            GUILayout.Label(respuestas[0]);
            GUILayout.Label(respuestas[1]);

            if(GUILayout.Button(botones[0]))
                        {
                quest=1;displaydialog=false;
                        }


        if (GUILayout.Button (botones [1])) {


            displaydialog=false;

            }
        }

        if (displaydialog && quest == 0)
        {
            GUILayout.Label(respuestas[2]);
            if(GUILayout.Button(botones[2]))displaydialog=false;

            }
        GUILayout.EndArea ();
    }

    void OnTriggerEnter()
    { displaydialog=true;

    }
    void OnTriggerExit()
    { displaydialog=false;
       
    }

}

You probably want to switch to the new UI tools.

maybe,but i need a tutorial using gui tool apply to make a dilogue sistem.

do you have idea where i can found one?

Here you have a huge tutorial for the new ui and also for buttons and dialogs all this stuff :wink:

i dowload the video and practicse that… i think it will take time to do a dialog , tks if i have any other questios i say in this post

This may be a useful starting point

https://www.youtube.com/watch?v=2Z7r1rXjLrU

ok i dowloadn and try to do it and no hit my head whit the pc jeje, thakns