public static void addVolume(LandscapeHoleVolume volume)
 {
     if (LandscapeHoleSystem.volumes.Count >= LandscapeHoleSystem.MAX_LANDSCAPE_HOLES)
     {
         return;
     }
     LandscapeHoleSystem.landscapeHoles[LandscapeHoleSystem.volumes.Count] = volume.transform.worldToLocalMatrix;
     LandscapeHoleSystem.volumes.Add(volume);
     LandscapeHoleSystem.sendToGPU();
 }
        public static void removeVolume(LandscapeHoleVolume volume)
        {
            int num = LandscapeHoleSystem.volumes.IndexOf(volume);

            if (num < 0)
            {
                return;
            }
            LandscapeHoleSystem.volumes.RemoveAt(num);
            LandscapeHoleSystem.landscapeHoles[num] = LandscapeHoleSystem.landscapeHoles[LandscapeHoleSystem.volumes.Count];
            LandscapeHoleSystem.sendToGPU();
        }
        private static void handleUpdated()
        {
            bool flag = false;

            for (int i = 0; i < LandscapeHoleSystem.volumes.Count; i++)
            {
                LandscapeHoleVolume landscapeHoleVolume = LandscapeHoleSystem.volumes[i];
                if (landscapeHoleVolume.transform.hasChanged)
                {
                    LandscapeHoleSystem.landscapeHoles[i]    = landscapeHoleVolume.transform.worldToLocalMatrix;
                    landscapeHoleVolume.transform.hasChanged = false;
                    flag = true;
                }
            }
            if (flag)
            {
                LandscapeHoleSystem.sendToGPU();
            }
        }