@@ -17,7 +17,7 @@ namespace Ichni.Editor
|
||||
public UnityAction onCloseWindow;
|
||||
public UnityAction onQuit;
|
||||
|
||||
protected void InitializeWindow(string titleText, UnityAction closeAction = null)
|
||||
protected void InitializeWindow(string titleText, UnityAction closeAction = null, Vector3 targetScale = default)
|
||||
{
|
||||
title.text = titleText;
|
||||
onCloseWindow = closeAction;
|
||||
@@ -30,7 +30,7 @@ namespace Ichni.Editor
|
||||
Destroy(gameObject);
|
||||
});
|
||||
});
|
||||
StartCoroutine(WindowAnim.ShowPanelOnScale(gameObject));
|
||||
this.transform.DOScale(targetScale == default ? Vector3.one : targetScale, 0.2f).SetEase(Ease.OutBack).From(Vector3.zero);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user