mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Let center of the universe be deactivated when it needs to be
This commit is contained in:
parent
fc903b4117
commit
61d9947d8e
@ -16,9 +16,9 @@ namespace NewHorizons.Components
|
|||||||
|
|
||||||
public void Update()
|
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);
|
_centerOfTheUniverse.SetActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user