Пример #1
0
            } // Start

            /// <summary>
            /// Tasks executed during the update.
            /// This is the place to put the application logic.
            /// </summary>
            public override void Update()
            {
                if (beginInEditorMode)
                {
                    EditorManager.EnableEditorMode();
                    beginInEditorMode = false;
                }
                // Enable editor mode
                if (Keyboard.KeyJustPressed(Keys.E) && Keyboard.KeyPressed(Keys.LeftControl))
                {
                    if (EditorManager.EditorModeEnabled)
                    {
                        EditorManager.DisableEditorMode();
                    }
                    else
                    {
                        EditorManager.EnableEditorMode();
                    }
                }
            } // UpdateTasks