using System; using Boo.Lang.Runtime; using UnityEngine; [Serializable] public class GetUniStormComponents_JS : 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; public object[] weathers; public UniStormWeatherSystem_JS weather; public virtual void Awake() { unistorm = GameObject.FindGameObjectWithTag("UniStorm"); if (!object.ReferenceEquals(unistorm, null)) { weathers = unistorm.GetComponentsInChildren(typeof(UniStormWeatherSystem_JS)); object obj = weathers[0]; if (!(obj is UniStormWeatherSystem_JS)) { obj = RuntimeServices.Coerce(obj, typeof(UniStormWeatherSystem_JS)); } weather = (UniStormWeatherSystem_JS)obj; if (!object.ReferenceEquals(weather, null)) { weather.rain = rain; weather.snow = snow; weather.butterflies = lightningBugs; weather.rainMist = rainMist; weather.rainSplashes = rainSplash; weather.lightningSpawn = lightningPosition; weather.snowMistFog = snowDust; weather.mistFog = rainStreaks; weather.windyLeaves = windyLeaves; weather.lightningBolt1 = lightningBolt1; weather.cameraObject = unistormCamera; } } } public virtual void Main() { } }