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