Beispiel #1
0
    //for opening the window for the first time
    public static void OpenWindow(dialogueOption o = null, Node p = null)
    {
        option = o;
        parent = p;

        if (option != null)
        {
            //set values
            text = option._text;
            req  = option._req;
            dest = option._dest;
        }
        window         = (OptionSettings)GetWindow(typeof(OptionSettings));
        window.minSize = new Vector2(300, 300);
        window.Show();
    }
Beispiel #2
0
 //for opening the window any other time
 public void OpenWindow()
 {
     window         = (OptionSettings)GetWindow(typeof(OptionSettings));
     window.minSize = new Vector2(300, 300);
     window.Show();
 }