Ejemplo n.º 1
0
        private void OnGUI()
        {
            if (Controls == null || Controls.Any() == false)
            {
                OnLoad();
            }

            PrivateDispatcher.DispatchAllStart();
            RendererEngine.Controls   = Controls;
            RendererEngine.Dispatcher = PrivateDispatcher;
            RendererEngine.RenderControls();
            PrivateDispatcher.DispatchAllEnd();
        }
Ejemplo n.º 2
0
        private void OnGUI()
        {
            if (GUI.Button(new Rect(Screen.width - 50, 0, 50, 20), "Reset"))
            {
                Controls = null;
            }

            if (Controls == null || Controls.Any() == false)
            {
                OnLoad();
                InitControls(Controls);
            }

            RendererEngine.RenderControls(Controls);
        }
Ejemplo n.º 3
0
        private void OnGUI()
        {
                        #if UNITY_EDITOR
            if (GUI.Button(new Rect(Screen.width - 50, 0, 50, 20), "Reset"))
            {
                Controls = null;
            }
                        #endif

            if (Controls == null || Controls.Any() == false)
            {
                OnLoad();
            }

            PrivateDispatcher.DispatchAllStart();
            RendererEngine.Controls   = Controls;
            RendererEngine.Dispatcher = PrivateDispatcher;
            RendererEngine.RenderControls();
            PrivateDispatcher.DispatchAllEnd();
        }
Ejemplo n.º 4
0
 protected EditorWindowHelper()
 {
     PrivateDispatcher = new DispatcherOnGUI();
     RendererEngine    = new RendererEngine();
 }