完善编辑器
This commit is contained in:
@@ -25,11 +25,14 @@ public class UIRelivesPanel : MonoBehaviour
|
||||
UIWindow.Instance.ShowMessage("reliveItem.prefabʧ<62><CAA7>");
|
||||
return;
|
||||
}
|
||||
|
||||
Vector2Int newPos = MapManager.Instance.GetCameraPos();
|
||||
GameObject go = Instantiate(obj) as GameObject; ;
|
||||
go.transform.SetParent(itemParent, false);
|
||||
UIReliveItem item = go.GetComponent<UIReliveItem>();
|
||||
item.reliveIdx = itemParent.childCount;
|
||||
item.editCellType = MapManager.EditCellType.ReliveCell;
|
||||
item.SetItemPos(newPos);
|
||||
MapManager.Instance.CreateSpecialPoint(newPos, item);
|
||||
}
|
||||
|
||||
public void AddItem(int reliveType, int mapId, Vector2Int pos, int radius, int realMapId)
|
||||
@@ -52,7 +55,7 @@ public class UIRelivesPanel : MonoBehaviour
|
||||
|
||||
if (mapId != realMapId)
|
||||
return;
|
||||
|
||||
item.editCellType = MapManager.EditCellType.ReliveCell;
|
||||
MapManager.Instance.SetReliveCenterPoint(item.reliveIdx, radius);
|
||||
MapManager.Instance.CreateSpecialPoint(pos, item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user