15 lines
375 B
C#
15 lines
375 B
C#
using KBCore.Refs;
|
|
using NEG.UI.UnityUi.Window;
|
|
using NEG.UI.Window;
|
|
using UnityEngine;
|
|
|
|
namespace NEG.UI.UnityUi.Buttons
|
|
{
|
|
public class OpenAsCurrentMainChild : ButtonReaction
|
|
{
|
|
[SerializeField]
|
|
private MonoWindow windowToOpen;
|
|
|
|
protected override void OnClicked() => UiManager.Instance.CurrentMainWindow.OpenAsChild(windowToOpen);
|
|
}
|
|
} |