예제 #1
0
 private void InitializeFlowField()
 {
     Debug.Log($"Generating grid of size: {gridSize.ToString()}");
     curFlowField = new FlowField(cellRadius, gridSize);
     curFlowField.CreateGrid();
     gridDebug.SetFlowField(curFlowField);
 }
예제 #2
0
 public void SetFlowField(FlowField newFlowField)
 {
     curFlowField = newFlowField;
     cellRadius   = newFlowField.cellRadius;
     gridSize     = newFlowField.gridSize;
 }