예제 #1
0
 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);
     }
 }
예제 #2
0
 /// <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);
     }
 }