using UnityEngine; public class WeatherZoneExample_C : MonoBehaviour { public GameObject uniStormSystem; public int zoneWeather = 1; private void Start() { uniStormSystem = GameObject.Find("UniStormSystemEditor"); } private void OnTriggerEnter(Collider other) { if (other.tag == "Player") { uniStormSystem.GetComponent().weatherForecaster = zoneWeather; } } }