mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix RemoveStarLight bugs
This commit is contained in:
parent
3d1e450d6d
commit
13dfe1c535
@ -302,7 +302,7 @@ namespace NewHorizons.Components.SizeControllers
|
||||
private void DisableStar(bool start = false)
|
||||
{
|
||||
if (controller != null) StarLightController.RemoveStar(controller);
|
||||
StarLightController.RemoveStarLight(gameObject.FindChild("SunLight").GetAddComponent<Light>());
|
||||
if (!isProxy) StarLightController.RemoveStarLight(gameObject.FindChild("SunLight").GetAddComponent<Light>());
|
||||
|
||||
if (_stellarRemnant != null)
|
||||
{
|
||||
|
||||
@ -118,7 +118,7 @@ namespace NewHorizons.Handlers
|
||||
case AstroObject.Name.Sun:
|
||||
var starController = ao.gameObject.GetComponent<StarController>();
|
||||
StarLightController.RemoveStar(starController);
|
||||
StarLightController.RemoveStarLight(ao.gameObject.FindChild("SunLight").GetComponent<Light>());
|
||||
StarLightController.RemoveStarLight(ao.gameObject.FindChild("Sector_SUN/Effects_SUN/SunLight").GetComponent<Light>());
|
||||
GameObject.Destroy(starController);
|
||||
|
||||
var audio = ao.GetComponentInChildren<SunSurfaceAudioController>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user