格子划分正常

This commit is contained in:
2025-06-15 20:14:45 +08:00
parent c7700419cb
commit bc58a9d0d5
29 changed files with 1546 additions and 107 deletions

View File

@@ -194,7 +194,7 @@ public class UICellEditor : MonoBehaviour
//ͼ<><CDBC><EFBFBD>
public void OnShowLayerToggleChange()
{
MapManager.CellLayer[] layers = (MapManager.CellLayer[])Enum.GetValues(typeof(MapManager.CellLayer));
CellLayer[] layers = (CellLayer[])Enum.GetValues(typeof(CellLayer));
_layers = 0;
for (int i= showgLayers.Length - 1; i>=0; i--)
{
@@ -223,7 +223,7 @@ public class UICellEditor : MonoBehaviour
}
float brushRadius = Convert.ToSingle(txtBrushRadius.text);
MapManager.CellType type = (MapManager.CellType)(1 << dropCellType.value);
CellType type = (CellType)(1 << dropCellType.value);
MapManager.Instance.SetBrush(brushRadius, type);
MapManager.Instance.StartEditor();
}