Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/RandomWeather.cs
2026-02-21 16:45:37 +08:00

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);
}
}
}