mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
use the pivot instead
This commit is contained in:
parent
20d6502243
commit
79ffb99d05
@ -101,7 +101,7 @@ namespace NewHorizons.Handlers
|
||||
|
||||
if (config.MenuPlanet != null)
|
||||
{
|
||||
var menuPlanet = SearchUtilities.Find("Scene/Background/PlanetPivot/PlanetRoot");
|
||||
var menuPlanet = SearchUtilities.Find("Scene/Background/PlanetPivot");
|
||||
|
||||
if (config.MenuPlanet.removeChildren != null)
|
||||
{
|
||||
@ -116,7 +116,7 @@ namespace NewHorizons.Handlers
|
||||
}
|
||||
}
|
||||
|
||||
var rotator = SearchUtilities.Find("Scene/Background/PlanetPivot").GetComponent<RotateTransform>();
|
||||
var rotator = menuPlanet.GetComponent<RotateTransform>();
|
||||
rotator._localAxis = Vector3.up;
|
||||
rotator._degreesPerSecond = config.MenuPlanet.rotationSpeed;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user