Esempio n. 1
0
        public static void ShowWiz(Action <plyVarCreateWiz> callback)
        {
            plyVariablesEditor.LoadVarEds();
            plyVarCreateWiz window = EditorWindow.GetWindow <plyVarCreateWiz>(true, "Create Variable", true);

            window.callback = callback;
            window.curr     = -1;
            window.minSize  = new Vector2(250f, 100f);
            window.ShowUtility();
        }
Esempio n. 2
0
        public static void ShowWiz(Action <plyVarCreateWiz> callback, string nameString, string forceName = null)
        {
            plyVariablesEditor.LoadVarEds();
            plyVarCreateWiz window = EditorWindow.GetWindow <plyVarCreateWiz>(true, "Create " + nameString, true);

            window.callback  = callback;
            window.curr      = -1;
            window.forceName = forceName;
            window.minSize   = new Vector2(250f, 100f);
            window.ShowUtility();
        }