变量模块;Element启用控制
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Ichni.Editor
|
||||
public Button closeButton;
|
||||
public TMP_Text title;
|
||||
public UnityAction onCloseWindow;
|
||||
public UnityAction onQuit;
|
||||
|
||||
protected void InitializeWindow(string titleText, UnityAction closeAction = null)
|
||||
{
|
||||
@@ -22,6 +23,7 @@ namespace Ichni.Editor
|
||||
closeButton.onClick.AddListener(() =>
|
||||
{
|
||||
onCloseWindow?.Invoke();
|
||||
onQuit?.Invoke();
|
||||
Destroy(gameObject);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user