Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class WeatherController : MonoBehaviour {
- public GameObject unistormSystemEditor;
- private UniStormWeatherSystem_C weatherSystem;
- // Use this for initialization
- void Start () {
- if (unistormSystemEditor != null) {
- weatherSystem = unistormSystemEditor.GetComponent<UniStormWeatherSystem_C>();
- }
- else Debug.Log ("Must attach UnistormSystemEditor object to WeatherControll sript");
- }
- // Update is called once per frame
- void Update () {
- if (Input.GetKeyDown(KeyCode.C)) weatherSystem.weatherForecaster = 12;
- if (Input.GetKeyDown(KeyCode.T)) weatherSystem.hourCounter = 3;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement