格子划分正常
This commit is contained in:
@@ -25,7 +25,7 @@ namespace HxGame
|
||||
private readonly int _index;
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD> <20><><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD><EFBFBD>赲<EFBFBD><E8B5B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
public MapManager.CellType cellType = MapManager.CellType.Obstacle;
|
||||
public CellType cellType = CellType.Obstacle;
|
||||
|
||||
public int X { get { return _x; } }
|
||||
public int Y { get { return _y; } }
|
||||
@@ -55,14 +55,14 @@ namespace HxGame
|
||||
return new Vector3(x, 0.03f, z);
|
||||
}
|
||||
|
||||
public CellNode(int x, int y, int index, MapManager.CellType type)
|
||||
public CellNode(int x, int y, int index, CellType type)
|
||||
{
|
||||
_x = x;
|
||||
_y = y;
|
||||
_index = index;
|
||||
|
||||
if (type == MapManager.CellType.Safe)
|
||||
cellType |= MapManager.CellType.Safe;
|
||||
if (type == CellType.Safe)
|
||||
cellType |= CellType.Safe;
|
||||
else
|
||||
cellType = type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user