Example #1
0
        public static void Init(State state = State.None)
        {
            InteractableEditor.state = state;
            GUIHelper.focusOnStart   = true;

            InteractableEditor window = (InteractableEditor)GetWindow(typeof(InteractableEditor), false, "Interactable", true);

            if (state == State.Create)
            {
                window.minSize = new Vector2(GUIHelper.WINDOW_MIN_WIDTH, 100);
            }

            else
            {
                window.minSize = new Vector2(GUIHelper.WINDOW_MIN_WIDTH, 390);
            }

            if (state == State.Close)
            {
                window.Close();
            }

            else
            {
                window.Show();
            }
        }