Neg_Utils/NEG/UI/UnityUi/Area/CloseMainWindowOnBack.cs
2024-02-12 21:26:24 +01:00

16 lines
391 B
C#

using NEG.UI.UnityUi;
using NEG.UI.Window;
using NegUtils.NEG.UI;
namespace NEG.UI.Area
{
public class CloseMainWindowOnBack : MonoController
{
protected override void OnBackUsed(IControllable.BackUsed backUsed)
{
base.OnBackUsed(backUsed);
UiManager.Instance.CurrentMainWindow?.Close();
backUsed.Used = true;
}
}
}