예제 #1
0
파일: HexCell.cs 프로젝트: JCYTop/Project_X
 public HexEdgeType GetEdgeType(HexCell otherCell)
 {
     return(HexMetrics.GetEdgeType(elevation, otherCell.elevation));
 }
예제 #2
0
파일: HexCell.cs 프로젝트: JCYTop/Project_X
 public void SetNeighbor(HexDirection direction, HexCell cell)
 {
     neighbors[(int)direction] = cell;
     cell.neighbors[(int)direction.Opposite()] = this;
 }