Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/SRDebugger/UI/DebugPanelRoot.cs
2026-02-21 16:45:37 +08:00

32 lines
634 B
C#

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<IDebugService>().HideDebugPanel();
TabController.TabController.TabContentsContainer.gameObject.SetActive(false);
}
public void CloseAndDestroy()
{
SRServiceManager.GetService<IDebugService>().DestroyDebugPanel();
}
}
}