// Use this for initialization void Start() { //instantiate private variables _wood = 0; _power = 0; _food = 0; _numElectr = 0; _numScav = 0; _numLogger = 0; _checkTime5 = 5f; _checkTime10 = 10f; _checkTime20 = 20f; _enemies = new List <EnemyController>(); _friendlies = new List <CivilianController>(); _locations = new Location[5]; CreateLocations(); Debug.Log("Global Controller initialized."); //musicController = GameObject.FindWithTag("BGMController").GetComponent<BGMController>(); voiceController = GameObject.FindWithTag("SFXController").GetComponent <SFXController>(); voiceEffects = voiceController.GetComponents <AudioSource>(); radioSongSnapshots = new AudioMixerSnapshot[7]; radioSongSnapshots[0] = mixer.FindSnapshot("Overworld"); radioSongSnapshots[1] = mixer.FindSnapshot("TheGoodOne"); radioSongSnapshots[2] = mixer.FindSnapshot("Electrician"); radioSongSnapshots[3] = mixer.FindSnapshot("Forest"); radioSongSnapshots[4] = mixer.FindSnapshot("TheBadOne"); radioSongSnapshots[5] = mixer.FindSnapshot("TitleScreen"); radioSongSnapshots[6] = mixer.FindSnapshot("Battle"); }