完善编辑器

This commit is contained in:
tangbin
2025-07-19 12:48:11 +08:00
parent 2df2efaa3e
commit b8b50ec90b
27 changed files with 360 additions and 124 deletions

View File

@@ -17,8 +17,9 @@ public class UIReliveItem : UIBaseItem
public int reliveIdx;
// Start is called before the first frame update
void Awake()
protected override void Awake()
{
base.Awake();
AddInputNameClickEvent(txtPos);
btnDel.onClick.AddListener(RemoveSelf);
reliveIdx = 0;
@@ -52,7 +53,16 @@ public class UIReliveItem : UIBaseItem
DestroyImmediate(gameObject);
MapManager.Instance.RemoveReliveCenterPoint(reliveIdx);
}
public override void SetItemPos(Vector2Int pos)
{
base.SetItemPos(pos);
txtPos.text = pos.ToString();
}
private void OnDestroy()
{
if (sceneArea == null) return;
DestroyImmediate(sceneArea.gameObject);
}
public bool CheckValid()
{
if (string.IsNullOrEmpty(txtMapId.text))