static void Postfix(Exosuit __instance) { __instance.GetComponentsInChildren <VFXVolumetricLight>().ForEach(x => x.DisableVolume()); var customLights = __instance.GetComponent <ExosuitCustomLight>(); customLights.isPilotMode = true; Exosuit_Start_Patch.currentExosuitCustomLight = customLights; Exosuit_UpdateUIText_Patch.BuildToggleLightText(); }
static void Postfix(Exosuit __instance) { var exoToggleLights = __instance.GetComponent <ExosuitCustomLight>(); if (exoToggleLights == null) { exoToggleLights = __instance.gameObject.AddComponent <ExosuitCustomLight>(); } exoToggleLights.SetLightsActive(false); currentExosuitCustomLight = exoToggleLights; Exosuit_UpdateUIText_Patch.BuildToggleLightText(); }