Wait for all bodies to shrink

This commit is contained in:
Noah Pilarski 2022-08-18 06:43:10 -04:00
parent 63f19c6489
commit d9e6b3be8d

View File

@ -247,6 +247,8 @@ namespace NewHorizons.Components.SizeControllers
if (Time.time > _supernovaStartTime + supernovaTime)
{
if (_destructionVolume != null && _destructionVolume._shrinkingBodies.Count > 0) return;
if (_planetDestructionVolume != null && _planetDestructionVolume._shrinkingBodies.Count > 0) return;
DisableStar();
}
}