public void GenerateHeatMap() { gameSystemRef.bestScore = Mathf.NegativeInfinity; //heatmapRef.StartSampling(SamplingFunc,5,1); Physics.autoSimulation = false; heatmapRef.StartSampling(SamplingFuncBatch, 8, 2, 2, () => { Physics.autoSimulation = true; }); }