private void HandleEscape() { if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.BackQuote)) { escapeAction.Activate(); } }
/* 激活或隐藏开发者控制台 */ private void ToggleConsole() { consoleEnabled = !consoleEnabled; if (consoleEnabled) { consoleOpenAction.Activate(); } else { consoleCloseAction.Activate(); } }