// Start is called before the first frame update. Initializing the weather state, gametime, and time speed. void Start() { soundSystem = FindObjectOfType <SoundSystem>(); effectSystem = FindObjectOfType <EffectSystem>(); thunderSystem = FindObjectOfType <ThunderSystem>(); clipSystem = FindObjectOfType <ClipSystem>(); setWeatherGameTime(Weather.SUNNY, 12); timeSpeed = 1; }
private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(this.gameObject); } }