Пример #1
0
 /// <summary>
 /// 设置某个格子的可通行性
 /// </summary>
 /// <param name="row">格子坐标</param>
 /// <param name="col">格子坐标</param>
 /// <param name="walkable">可通行性</param>
 public void SetWalkable(int col, int row, bool walkable)
 {
     if (m_space)
     {
         return;
     }
     m_mapWalkableData.SetWalkable(col, row, walkable);
     m_pathPlanner.SetWalkable(col, row, walkable);
 }
Пример #2
0
 public void SetWalkable(int col, int row, bool walkable)
 {
     m_starGrid.SetWalkable(col, row, walkable);
 }