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