完善编辑器
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user