mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Remove unused code, put var
This commit is contained in:
parent
ccdfd94b22
commit
807067ed95
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user