Example #1
0
 public void Dispose()
 {
     if (/*NativeLightsBoundList != null && */ NativeLightsBoundList.IsCreated)
     {
         NativeLightsBoundList.Dispose();
     }
     if (LightsSphereList.IsCreated)
     {
         LightsSphereList.Dispose();
     }
     if (/*NativeLightsDataList != null &&*/ NativeLightsDataList.IsCreated)
     {
         NativeLightsDataList.Dispose();
     }
     if (culsterDataGenerator != null)
     {
         culsterDataGenerator.CleanUp();
         culsterDataGenerator = null;
     }
     if (tileAndClusterData != null)
     {
         tileAndClusterData.CleanUp();
         tileAndClusterData = null;
     }
     if (lightLoopLightsData != null)
     {
         lightLoopLightsData.CleanUp();
         lightLoopLightsData = null;
     }
 }