Пример #1
0
        private void SwitchView(Subview fromView, Subview toView)
        {
            GUI.FocusControl(null);

            if (fromView != null)
            {
                fromView.OnDisable();
            }
            toView.OnEnable();

            // this triggers a repaint
            Parent.Redraw();
        }
Пример #2
0
        private void SwitchView(Subview fromView, Subview toView)
        {
            GUI.FocusControl(null);

            if (fromView != null)
            {
                fromView.OnDisable();
            }
            toView.OnEnable();
            titleContent = new GUIContent(ActiveView.Title, Styles.SmallLogo);

            // this triggers a repaint
            Repaint();
        }