using UnityEngine; public class RandomWeather : MonoBehaviour { private GameObject uniStormSystem; private UniStormWeatherSystem_C uniStormSystemScript; private void Awake() { uniStormSystem = GameObject.Find("UniStormSystemEditor"); uniStormSystemScript = uniStormSystem.GetComponent(); } private void Update() { if (Input.GetKeyDown(KeyCode.R)) { uniStormSystemScript.weatherForecaster = Random.Range(1, 13); } } }