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