private void MarkNeighborHexes(UnitModel unit) { _positions = HexMapHelper.GetPositions(unit.X, unit.Y, _hexMapModel.Width, _hexMapModel.Height); for (int i = 0; i < _positions.Count; i++) { CheckAndMark(_positions[i].x, _positions[i].y, unit); } }
private void MarkNeighborHexes(UnitModel unit) { _positions = HexMapHelper.GetPositions(unit.X, unit.Y, _hexMapModel.Width, _hexMapModel.Height); for (int i = 0; i < _positions.Count; i++) { CheckAndMark(_positions[i].x, _positions[i].y, unit); } }