private void UpdateNeighboursOnCellChange(common.world.cellType.LogicCell cell)
 {
     if (cell.IsWalkable)
     {
         AddAllWalkableNeighbours(m_cellToNodes[cell]);
     }
     else
     {
         RemoveAllNeighbours(m_cellToNodes[cell]);
     }
 }
 public void CloseDoor(int x, int y)
 {
     common.world.cellType.LogicCell cell = m_logicGrid.Grid[x, y];
     if (cell != null)
     {
         if (cell is common.world.cellType.DoorCell door)
         {
             door.CloseDoor();
         }
     }
 }
 private PathNode GetNodeIfWalkable(int x, int y)
 {
     common.world.cellType.LogicCell cell = m_logicGrid.Grid[x, y];
     return(cell != null ? (cell.IsWalkable ? GetNode(x, y) : null) : null);
 }