This commit is contained in:
tangbin
2025-06-22 18:23:47 +08:00
parent 1cb6dc502f
commit b1c9facf3e
9 changed files with 297 additions and 22 deletions

View File

@@ -78,7 +78,11 @@ public class UIMonsterItem : MonoBehaviour
MapManager.Instance.CreateSpecialPoint(monster.pos.x, monster.pos.y, MapManager.EditCellType.MonsterArea);
MapManager.Instance.SetCurMonsterPathIdx(pathIdx);
}
public void RefreshPos(Vector2Int newPos)
{
monster.pos = newPos;
txtPos.text = newPos.ToString() ;
}
public void RefreshItem()
{
txtMonsterID.text = monster.id.ToString();