格子划分正常
This commit is contained in:
@@ -324,7 +324,7 @@ namespace HxGame.PathFinding
|
||||
|
||||
mNewLocation = (mNewLocationY << mGridYLog2) + mNewLocationX;
|
||||
CellNode nextCell = mGrid[mNewLocation];
|
||||
if (nextCell == null || (nextCell.cellType == MapManager.CellType.Obstacle && !mIgnoreCanCrossCheck))
|
||||
if (nextCell == null || (nextCell.cellType == CellType.Obstacle && !mIgnoreCanCrossCheck))
|
||||
continue;
|
||||
|
||||
//if (!mIncludeInvisibleCells && !mGrid[mNewLocation].visible)
|
||||
|
||||
@@ -302,7 +302,7 @@ namespace HxGame.PathFinding
|
||||
continue;
|
||||
|
||||
mNewLocation = (mNewLocationY * mGridX) + mNewLocationX;
|
||||
if (mGrid[mNewLocation].cellType == MapManager.CellType.Obstacle && !mIgnoreCanCrossCheck)
|
||||
if (mGrid[mNewLocation].cellType == CellType.Obstacle && !mIgnoreCanCrossCheck)
|
||||
{
|
||||
Debug.Log($"{mNewLocation}<7D><><EFBFBD>赲<EFBFBD><E8B5B2>");
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user