private void OnTriggerEnter(Collider other) { if (other.tag == "SpawnPointTwo") { spawnerCount = 1; if (sourceTwo == false) { sourceTwo = true; audioContainer.StartCrossfadeOne(); // for web build /* * audioContainer.StopMusicSource1(); * audioContainer.MusicSource2Vol(1); */ } } if (other.tag == "SpawnPointThree") { spawnerCount = 2; if (sourceThree == false) { sourceThree = true; audioContainer.StartCrossfadeTwo(); // for web build /* * audioContainer.StopMusicSource2(); * audioContainer.MusicSource3Vol(1); */ } } if (other.tag == "End") { audioContainer.StopMusicSource2(); audioContainer.StopMusicSource3(); audioContainer.PlayMusicSource4(); } }