public IList <Cell> GetNeighboursOfCell(int idCell) { IList <Cell> associatedNeighbours = new List <Cell>(); if (Neighbours.TryGetValue(idCell, out associatedNeighbours)) { return(associatedNeighbours); } return(null); }
public Point GetNeighbour(Vector2 direction) { Neighbours.TryGetValue(direction, out var point); return(point); }