using UnityEngine; using static UnityEngine.InputSystem.InputAction; namespace GFMain { public partial class MainEntry : MonoBehaviour { private InputCommon inputs; protected void InitCtrl() { inputs = new InputCommon(); inputs.Enable(); inputs.Common.OpenDebug.performed += OnOpenDebug; } private void OnOpenDebug(CallbackContext context) { Debugger.ActiveWindow = !Debugger.ActiveWindow; if (Debugger.ActiveWindow) Debugger.ResetLayout(); } } }