Ejemplo n.º 1
0
 extern private static void Internal_GenerateSegmentAsync(
     IntPtr serverPtr,
     GridIndex gridIndex,
     MeshFilter destinationMeshFilter,
     MeshCollider destinationMeshCollider,
     SegmentReadyDelegate onSegmentReady,
     bool provideNormals,
     bool provideColors,
     bool providePhysics);
 private static void InvokeSegmentReadyEvent(MeshReconstructionServer.SegmentReadyDelegate onSegmentReady, GridIndex gridIndex, MeshFilter meshFilter, MeshCollider meshCollider, bool success, double elapsedTimeSeconds)
 {
     if (onSegmentReady != null)
     {
         SegmentGenerationResult generatedSegmentData = new SegmentGenerationResult
         {
             gridIndex          = gridIndex,
             meshFilter         = meshFilter,
             meshCollider       = meshCollider,
             success            = success,
             elapsedTimeSeconds = elapsedTimeSeconds
         };
         onSegmentReady(generatedSegmentData);
     }
 }
 private static void InvokeSegmentChangedEvent(MeshReconstructionServer.SegmentChangedDelegate onSegmentChanged, GridIndex gridIndex, SegmentChange changeType, double updateTime)
 {
     if (onSegmentChanged != null)
     {
         onSegmentChanged(gridIndex, changeType, updateTime);
     }
 }
 private static void Internal_GenerateSegmentAsync(IntPtr serverPtr, GridIndex gridIndex, MeshFilter destinationMeshFilter, MeshCollider destinationMeshCollider, MeshReconstructionServer.SegmentReadyDelegate onSegmentReady, bool provideNormals, bool provideColors, bool providePhysics)
 {
     MeshReconstructionServer.Internal_GenerateSegmentAsync_Injected(serverPtr, ref gridIndex, destinationMeshFilter, destinationMeshCollider, onSegmentReady, provideNormals, provideColors, providePhysics);
 }