mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Don't register proxy stars
This commit is contained in:
parent
f993a0870c
commit
f3a1e38f40
@ -210,6 +210,7 @@ namespace NewHorizons.Builder.Body
|
||||
|
||||
starGO.SetActive(false);
|
||||
var controller = starGO.AddComponent<StarEvolutionController>();
|
||||
controller._isProxy = true;
|
||||
if (starModule.curve != null) controller.SetScaleCurve(starModule.curve);
|
||||
controller.size = starModule.size;
|
||||
controller.supernovaSize = starModule.supernovaSize;
|
||||
|
||||
@ -14,6 +14,8 @@ namespace NewHorizons.Components.SizeControllers
|
||||
{
|
||||
public class StarEvolutionController : SizeController
|
||||
{
|
||||
public bool _isProxy;
|
||||
|
||||
public GameObject atmosphere;
|
||||
public StarController controller;
|
||||
public SupernovaEffectController supernova;
|
||||
@ -159,7 +161,7 @@ namespace NewHorizons.Components.SizeControllers
|
||||
_flareEmitter = GetComponentInChildren<SolarFlareEmitter>();
|
||||
_surfaceMaterial = supernova._surface._materials[0];
|
||||
|
||||
SupernovaEffectHandler.RegisterStar(this);
|
||||
if (!_isProxy) SupernovaEffectHandler.RegisterStar(this);
|
||||
|
||||
var secondsElapsed = TimeLoop.GetSecondsElapsed();
|
||||
var lifespanInSeconds = lifespan * 60;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user