public static void RunImmediate <T>(this FindPairsConfig <T> config) where T : struct, IFindPairsProcessor { if (config.isLayerLayer) { FindPairsInternal.RunImmediate(config.layerA, config.layerB, config.processor); } else { FindPairsInternal.RunImmediate(config.layerA, config.processor); } }
/// <summary> /// Run the FindPairs operation without using a job. This method can be invoked from inside a job. /// </summary> public void RunImmediate() { if (isLayerLayer) { FindPairsInternal.RunImmediate(layerA, layerB, processor); } else { FindPairsInternal.RunImmediate(layerA, processor); } }