示例#1
0
        /// <summary>
        /// Requests start playing in editor.
        /// </summary>
        public void RequestStartPlay()
        {
            if (Editor.StateMachine.IsEditMode)
            {
                Editor.Log("[PlayMode] Start");

                if (Editor.Options.Options.General.AutoReloadScriptsOnMainWindowFocus)
                {
                    ScriptsBuilder.CheckForCompile();
                }
                _isPlayModeRequested = true;
                Editor.UI.UpdateToolstrip();
            }
        }
示例#2
0
        /// <summary>
        /// Requests start playing in editor.
        /// </summary>
        public void RequestStartPlay()
        {
            // Check if is in edit mode
            if (Editor.StateMachine.IsEditMode)
            {
                Editor.Log("[PlayMode] Start");

                // Request to be compiled
                ScriptsBuilder.CheckForCompile();

                // Set flag
                _isPlayModeRequested = true;

                // Update
                Editor.UI.UpdateToolstrip();
            }
        }