From 08cf0cb22e184f6f955dd3b5835bac4159754d57 Mon Sep 17 00:00:00 2001 From: TerrificTrifid <99054745+TerrificTrifid@users.noreply.github.com> Date: Tue, 8 Nov 2022 20:05:53 -0600 Subject: [PATCH] Remove light --- NewHorizons/Builder/Body/SingularityBuilder.cs | 12 ------------ .../SizeControllers/SingularitySizeController.cs | 6 ------ 2 files changed, 18 deletions(-) diff --git a/NewHorizons/Builder/Body/SingularityBuilder.cs b/NewHorizons/Builder/Body/SingularityBuilder.cs index 9be6b3d5..38b944f3 100644 --- a/NewHorizons/Builder/Body/SingularityBuilder.cs +++ b/NewHorizons/Builder/Body/SingularityBuilder.cs @@ -225,18 +225,6 @@ namespace NewHorizons.Builder.Body } else { - /* - var ambientLight = GameObject.Instantiate(_whiteHoleAmbientLight); - ambientLight.transform.parent = singularity.transform; - ambientLight.transform.localScale = Vector3.one; - ambientLight.transform.localPosition = Vector3.zero; - ambientLight.name = "AmbientLight"; - ambientLight.SetActive(true); - var light = ambientLight.GetComponent(); - light.range = distort * 7f; - if (sizeController != null) sizeController.light = light; - */ - GameObject whiteHoleVolumeGO = GameObject.Instantiate(_whiteHoleVolume); whiteHoleVolumeGO.transform.parent = singularity.transform; whiteHoleVolumeGO.transform.localPosition = Vector3.zero; diff --git a/NewHorizons/Components/SizeControllers/SingularitySizeController.cs b/NewHorizons/Components/SizeControllers/SingularitySizeController.cs index bd675f8e..4633324a 100644 --- a/NewHorizons/Components/SizeControllers/SingularitySizeController.cs +++ b/NewHorizons/Components/SizeControllers/SingularitySizeController.cs @@ -12,7 +12,6 @@ namespace NewHorizons.Components.SizeControllers { public Material material; public float innerScale; - public Light light; public AudioSource audioSource; public AudioSource oneShotAudioSource; public SphereCollider sphereCollider; @@ -27,11 +26,6 @@ namespace NewHorizons.Components.SizeControllers material.SetFloat(SingularityBuilder.MaxDistortRadius, CurrentScale); material.SetFloat(SingularityBuilder.DistortFadeDist, CurrentScale - CurrentScale * innerScale); - if (light != null) - { - light.range = CurrentScale * 7f; - } - if (audioSource != null) { audioSource.maxDistance = CurrentScale * 2.5f;