19 lines
450 B
C#
19 lines
450 B
C#
using KBCore.Refs;
|
|
using NEG.UI.Window;
|
|
using NegUtils.NEG.UI;
|
|
using UnityEngine;
|
|
|
|
namespace NEG.UI.UnityUi.Window
|
|
{
|
|
public class CloseWindowOnBack : MonoController
|
|
{
|
|
[SerializeField, Self(Flag.Editable)] private MonoWindow window;
|
|
|
|
protected override void UseBack(IControllable.BackUsed backUsed)
|
|
{
|
|
base.UseBack(backUsed);
|
|
window.Close();
|
|
backUsed.Used = true;
|
|
}
|
|
}
|
|
} |