Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/GetUniStormComponents_C.cs
2026-02-21 16:45:37 +08:00

53 lines
1.4 KiB
C#

using UnityEngine;
public class GetUniStormComponents_C : MonoBehaviour
{
public GameObject unistorm;
public GameObject unistormCamera;
public ParticleSystem rain;
public ParticleSystem snow;
public ParticleSystem lightningBugs;
public ParticleSystem rainMist;
public ParticleSystem snowDust;
public GameObject rainStreaks;
public ParticleSystem windyLeaves;
public GameObject lightningBolt1;
public ParticleSystem rainSplash;
public Transform lightningPosition;
private void Awake()
{
unistorm = GameObject.FindGameObjectWithTag("UniStorm");
if (!object.ReferenceEquals(unistorm, null))
{
UniStormWeatherSystem_C[] componentsInChildren = unistorm.GetComponentsInChildren<UniStormWeatherSystem_C>();
UniStormWeatherSystem_C uniStormWeatherSystem_C = componentsInChildren[0];
if (!object.ReferenceEquals(uniStormWeatherSystem_C, null))
{
uniStormWeatherSystem_C.rain = rain;
uniStormWeatherSystem_C.snow = snow;
uniStormWeatherSystem_C.butterflies = lightningBugs;
uniStormWeatherSystem_C.rainMist = rainMist;
uniStormWeatherSystem_C.rainSplashes = rainSplash;
uniStormWeatherSystem_C.lightningSpawn = lightningPosition;
uniStormWeatherSystem_C.snowMistFog = snowDust;
uniStormWeatherSystem_C.mistFog = rainStreaks;
uniStormWeatherSystem_C.windyLeaves = windyLeaves;
uniStormWeatherSystem_C.lightningBolt1 = lightningBolt1;
uniStormWeatherSystem_C.cameraObject = unistormCamera;
}
}
}
}