public void Release()
 {
     simpleMeshCombine.EnableRenderers(true);
     if (simpleMeshCombine.combined == null)
     {
         return;
     }
     Destroy(simpleMeshCombine.combined);
     simpleMeshCombine.combinedGameOjects = null;
     Debug.Log("Released");
 }
 void CombineAll(bool combine, SimpleMeshCombine[] arr)
 {
     for (int i = 0; i < arr.Length; i++)
     {
         SimpleMeshCombine smc = arr[i];
         if (combine && !smc.combined)
         {
             if (masterTarget.generateLightmapUV)
             {
                 smc.generateLightmapUV = true;
             }
             smc.CombineMeshes();
         }
         else if (!combine && smc.combined)
         {
             smc.EnableRenderers(true);
             if (smc.combined != null)
             {
                 DestroyImmediate(smc.combined);
             }
             smc.combinedGameOjects = null;
         }
     }
 }