mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
simplify another pattern
This commit is contained in:
parent
42bbe4bcce
commit
0ce611e36f
@ -66,7 +66,7 @@ namespace NewHorizons.Handlers
|
||||
var starLightGO = UnityEngine.Object.Instantiate(sun.GetComponentInChildren<SunLightController>().gameObject);
|
||||
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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user