using System; using UnityEngine; [Serializable] public class WeatherZoneExample_JS : MonoBehaviour { public GameObject uniStormSystem; public int zoneWeather; public float shieldArea; public WeatherZoneExample_JS() { shieldArea = 5f; } public virtual void Start() { uniStormSystem = GameObject.Find("UniStormSystemEditor"); } public virtual void Update() { } public virtual void OnTriggerEnter(Collider other) { if (other.tag == "Player") { ((UniStormWeatherSystem_JS)uniStormSystem.GetComponent(typeof(UniStormWeatherSystem_JS))).weatherForecaster = zoneWeather; } } public virtual void Main() { } }