大幅优化

Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-10-05 11:45:32 +08:00
parent e145d65d38
commit 725009e354
66 changed files with 616229 additions and 175087 deletions

View File

@@ -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);
}
}
}