public HexCell GetCell(Vector3 pos) { pos = transform.InverseTransformPoint(pos); HexCoord coord = HexCoord.FromPosition(pos); int index = coord.X + coord.Z * _width + coord.Z / 2; HexCell cell = _cells[index]; return(cell); }