/// \endcond /// \cond public override void ShutdownCubiquityVolume() { if (volumeHandle.HasValue) { // We only save if we are in editor mode, not if we are playing. bool saveChanges = !Application.isPlaying; if (saveChanges) { CubiquityDLL.AcceptOverrideBlocks(volumeHandle.Value); } CubiquityDLL.DiscardOverrideBlocks(volumeHandle.Value); CubiquityDLL.DeleteColoredCubesVolume(volumeHandle.Value); volumeHandle = null; } }
/// \endcond /// \cond public override void ShutdownCubiquityVolume() { if (!IsVolumeHandleNull()) { // We only save if we are in editor mode, not if we are playing. bool saveChanges = (!Application.isPlaying) && (writePermissions == WritePermissions.ReadWrite); if (saveChanges) { CommitChanges(); } else { DiscardChanges(); } CubiquityDLL.DeleteColoredCubesVolume(volumeHandle.Value); volumeHandle = null; } }