| 1234567891011121314151617181920212223 |
- 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();
- }
- }
- }
|