18 lines
471 B
C#
18 lines
471 B
C#
using NEG.UI.UnityUi.Window;
|
|
using NEG.UI.UnityUi.WindowSlot;
|
|
using NEG.UI.Window;
|
|
using UnityEngine;
|
|
|
|
namespace NEG.UI.UnityUi.Buttons
|
|
{
|
|
[RequireComponent(typeof(BaseButton))]
|
|
public class OpenWindow : ButtonReaction
|
|
{
|
|
[SerializeField] private MonoWindow window;
|
|
|
|
[Header("Open on default area slot if empty")] [SerializeField]
|
|
private MonoWindowSlot slot;
|
|
|
|
protected override void OnClicked() => window.Open(slot);
|
|
}
|
|
} |