This commit is contained in:
2025-07-19 10:42:08 +08:00
parent a84a4e56b6
commit 2df2efaa3e
2 changed files with 7 additions and 23 deletions

View File

@@ -71,6 +71,11 @@ public class UINpcItem : UIBaseItem
DestroyImmediate(gameObject);
}
private void OnDestroy()
{
if (sceneArea == null) return;
DestroyImmediate(sceneArea.gameObject);
}
public bool CheckValid()
{
if (string.IsNullOrEmpty(txtID.text))