彻底换一下
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using static UnityEditor.PlayerSettings;
|
||||
|
||||
public class UITeleportPanel : MonoBehaviour
|
||||
{
|
||||
@@ -34,7 +31,7 @@ public class UITeleportPanel : MonoBehaviour
|
||||
UITeleportItem item = go.GetComponent<UITeleportItem>();
|
||||
item.itemIdx = size;
|
||||
var gridPos = MapManager.Instance.map.selector.getMapGrid(Camera.main.transform.position);
|
||||
MapManager.Instance.CreateSpecialPoint(gridPos.x, gridPos.y, MapManager.EditCellType.TeleportCell);
|
||||
MapManager.Instance.CreateSpecialPoint(gridPos, item);
|
||||
}
|
||||
|
||||
public void AddItem(Vector2Int pos, int nextMapId, Vector2Int newMapPos)
|
||||
@@ -55,7 +52,7 @@ public class UITeleportPanel : MonoBehaviour
|
||||
item.txtPos.text = $"{pos.x},{pos.y}";
|
||||
item.txtNextMapID.text = nextMapId.ToString();
|
||||
item.txtNextMapPos.text = $"{newMapPos.x},{newMapPos.y}";
|
||||
MapManager.Instance.CreateSpecialPoint(pos.x, pos.y, MapManager.EditCellType.TeleportCell);
|
||||
MapManager.Instance.CreateSpecialPoint(pos, item);
|
||||
}
|
||||
|
||||
public void RemoveAll()
|
||||
|
||||
Reference in New Issue
Block a user