using SRDebugger.Scripts; using SRDebugger.Services; using SRF; using SRF.Service; using UnityEngine; namespace SRDebugger.UI { public class DebugPanelRoot : SRMonoBehaviourEx { [RequiredField] public Canvas Canvas; [RequiredField] public CanvasGroup CanvasGroup; [RequiredField] public DebuggerTabController TabController; public void Close() { SRServiceManager.GetService().HideDebugPanel(); TabController.TabController.TabContentsContainer.gameObject.SetActive(false); } public void CloseAndDestroy() { SRServiceManager.GetService().DestroyDebugPanel(); } } }