You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
namespace SRDebugger.UI
|
|
|
|
|
{
|
|
|
|
|
using Scripts;
|
|
|
|
|
using Services;
|
|
|
|
|
using SRF;
|
|
|
|
|
using SRF.Service;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class DebugPanelRoot : SRMonoBehaviourEx
|
|
|
|
|
{
|
|
|
|
|
[RequiredField] public Canvas Canvas;
|
|
|
|
|
|
|
|
|
|
[RequiredField] public CanvasGroup CanvasGroup;
|
|
|
|
|
|
|
|
|
|
[RequiredField] public DebuggerTabController TabController;
|
|
|
|
|
|
|
|
|
|
public void Close()
|
|
|
|
|
{
|
|
|
|
|
if (Settings.Instance.UnloadOnClose)
|
|
|
|
|
{
|
|
|
|
|
SRServiceManager.GetService<IDebugService>().DestroyDebugPanel();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
SRServiceManager.GetService<IDebugService>().HideDebugPanel();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void CloseAndDestroy()
|
|
|
|
|
{
|
|
|
|
|
SRServiceManager.GetService<IDebugService>().DestroyDebugPanel();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|