mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Merge branch 'shuttle' of https://github.com/Outer-Wilds-New-Horizons/new-horizons into shuttle
This commit is contained in:
commit
c1f1859648
@ -66,7 +66,7 @@ namespace NewHorizons.Handlers
|
|||||||
var starLightGO = UnityEngine.Object.Instantiate(sun.GetComponentInChildren<SunLightController>().gameObject);
|
var starLightGO = UnityEngine.Object.Instantiate(sun.GetComponentInChildren<SunLightController>().gameObject);
|
||||||
foreach (var comp in starLightGO.GetComponents<Component>())
|
foreach (var comp in starLightGO.GetComponents<Component>())
|
||||||
{
|
{
|
||||||
if (comp is not SunLightController && comp is not SunLightParamUpdater && comp is not Light && comp is not Transform)
|
if (comp is not (SunLightController or SunLightParamUpdater or Light or Transform))
|
||||||
{
|
{
|
||||||
UnityEngine.Object.Destroy(comp);
|
UnityEngine.Object.Destroy(comp);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,7 +60,7 @@ namespace NewHorizons.Handlers
|
|||||||
// Collect all rigid bodies and proxies
|
// Collect all rigid bodies and proxies
|
||||||
foreach (var rigidbody in CenterOfTheUniverse.s_rigidbodies)
|
foreach (var rigidbody in CenterOfTheUniverse.s_rigidbodies)
|
||||||
{
|
{
|
||||||
if (rigidbody.name is not "Player_Body" && rigidbody.name is not "Ship_Body")
|
if (rigidbody.name is not ("Player_Body" or "Probe_Body" or "Ship_Body"))
|
||||||
{
|
{
|
||||||
toDisable.Add(rigidbody.gameObject);
|
toDisable.Add(rigidbody.gameObject);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user