예제 #1
0
 /// <summary>
 /// Generate hexagon map mesh according to specified hex cells properties
 /// </summary>
 public void Triangulate()
 {
     terrain.Clear();
     rivers.Clear();
     roads.Clear();
     water.Clear();
     waterShore.Clear();
     estuaries.Clear();
     features.Clear();
     for (int i = 0; i < cells.Length; i++)
     {
         Triangulate(cells[i]);
     }
     terrain.Apply();
     rivers.Apply();
     roads.Apply();
     water.Apply();
     waterShore.Apply();
     estuaries.Apply();
     features.Apply();
 }
예제 #2
0
 public void Apply()
 {
     walls.Apply();
 }