Let center of the universe be deactivated when it needs to be

This commit is contained in:
Nick 2023-08-02 23:25:32 -04:00
parent fc903b4117
commit 61d9947d8e

View File

@ -16,9 +16,9 @@ namespace NewHorizons.Components
public void Update()
{
if (!_centerOfTheUniverse.activeInHierarchy)
if (!_centerOfTheUniverse.activeInHierarchy && !CenterOfTheUniverse.IsUniverseDeactivated())
{
NHLogger.LogWarning("Center of the universe cannot be inactive.");
NHLogger.LogWarning("Center of the universe cannot be inactive until the universe is deactivated.");
_centerOfTheUniverse.SetActive(true);
}
}