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.
CrowdControl/Assets/3rd/StompyRobot/SRDebugger/Scripts/UI/DebugPanelRoot.cs

35 lines
837 B
C#

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