32 lines
634 B
C#
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();
|
|
}
|
|
}
|
|
}
|