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

@@ -2,31 +2,10 @@
<config> <config>
<Settings mapID="1000" /> <Settings mapID="1000" />
<Npcs> <Npcs>
<Npc id="1001" indexX="85" indexY="84" dir="3"> <Npc id="1001" indexX="43" indexY="69" dir="3">
<NpcPaths /> <NpcPaths />
</Npc> </Npc>
<Npc id="1002" indexX="102" indexY="110" dir="3"> <Npc id="1002" indexX="63" indexY="99" dir="3">
<NpcPaths />
</Npc>
<Npc id="1003" indexX="142" indexY="98" dir="5">
<NpcPaths />
</Npc>
<Npc id="1004" indexX="119" indexY="118" dir="5">
<NpcPaths />
</Npc>
<Npc id="1005" indexX="60" indexY="150" dir="7">
<NpcPaths />
</Npc>
<Npc id="1006" indexX="106" indexY="89" dir="5">
<NpcPaths />
</Npc>
<Npc id="1007" indexX="139" indexY="128" dir="3">
<NpcPaths />
</Npc>
<Npc id="1008" indexX="75" indexY="73" dir="3">
<NpcPaths />
</Npc>
<Npc id="1011" indexX="132" indexY="108" dir="5">
<NpcPaths /> <NpcPaths />
</Npc> </Npc>
</Npcs> </Npcs>

View File

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