mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Remove disabled
This commit is contained in:
parent
57771cae0e
commit
38dd12c8e6
@ -50,8 +50,6 @@ namespace NewHorizons.Components.SizeControllers
|
||||
private bool _isSupernova;
|
||||
private float _supernovaStartTime;
|
||||
|
||||
public bool _disabled;
|
||||
|
||||
private Material _collapseStartSurfaceMaterial;
|
||||
private Material _collapseEndSurfaceMaterial;
|
||||
private Material _startSurfaceMaterial;
|
||||
@ -270,8 +268,6 @@ namespace NewHorizons.Components.SizeControllers
|
||||
|
||||
if (controller != null) StarLightController.RemoveStar(controller);
|
||||
|
||||
_disabled = true;
|
||||
|
||||
// Just turn off the star entirely
|
||||
base.gameObject.SetActive(false);
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ namespace NewHorizons.Handlers
|
||||
foreach (StarEvolutionController starEvolutionController in _starEvolutionControllers)
|
||||
{
|
||||
if (starEvolutionController == null) continue;
|
||||
if (starEvolutionController._disabled || !(starEvolutionController.gameObject.activeSelf && starEvolutionController.gameObject.activeInHierarchy)) continue;
|
||||
if (!(starEvolutionController.gameObject.activeSelf && starEvolutionController.gameObject.activeInHierarchy)) continue;
|
||||
float distance = (supernovaPlanetEffectController.transform.position - starEvolutionController.transform.position).sqrMagnitude;
|
||||
if (distance < (starEvolutionController.supernovaSize * starEvolutionController.supernovaSize) && distance < nearestDistance)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user