예제 #1
0
 public void Clear()
 {
     if (_objectContainer)
     {
         Destroy(_objectContainer.gameObject);
     }
     _objectContainer = new GameObject("Object Container").transform;
     _objectContainer.SetParent(transform, false);
     walls.Clear();
 }
예제 #2
0
 public void Triangulate()
 {
     terrain.Clear();
     rivers.Clear();
     roads.Clear();
     openWater.Clear();
     shoreWater.Clear();
     estuaries.Clear();
     objectManager.Clear();
     foreach (var cell in _cells)
     {
         TriangulateCell(cell);
     }
     terrain.Apply();
     rivers.Apply();
     roads.Apply();
     openWater.Apply();
     shoreWater.Apply();
     estuaries.Apply();
     objectManager.Apply();
 }