Remove unused code, put var

This commit is contained in:
Nick 2022-08-24 23:12:23 -04:00
parent ccdfd94b22
commit 807067ed95

View File

@ -154,8 +154,6 @@ namespace NewHorizons.Builder.Atmosphere
public static GameObject MakeTopClouds(GameObject rootObject, AtmosphereModule atmo, IModBehaviour mod) public static GameObject MakeTopClouds(GameObject rootObject, AtmosphereModule atmo, IModBehaviour mod)
{ {
Color cloudTint = atmo.clouds.tint?.ToColor() ?? UnityEngine.Color.white;
Texture2D image, cap, ramp; Texture2D image, cap, ramp;
try try
@ -224,7 +222,7 @@ namespace NewHorizons.Builder.Atmosphere
if (atmo.clouds.rotationSpeed != 0f) if (atmo.clouds.rotationSpeed != 0f)
{ {
RotateTransform topRT = cloudsTopGO.AddComponent<RotateTransform>(); var topRT = cloudsTopGO.AddComponent<RotateTransform>();
// Idk why but the axis is weird // Idk why but the axis is weird
topRT._localAxis = atmo.clouds.cloudsPrefab == CloudPrefabType.Basic ? Vector3.forward : Vector3.up; topRT._localAxis = atmo.clouds.cloudsPrefab == CloudPrefabType.Basic ? Vector3.forward : Vector3.up;
topRT._degreesPerSecond = atmo.clouds.rotationSpeed; topRT._degreesPerSecond = atmo.clouds.rotationSpeed;