// Start is called before the first frame update void Start() { waves = GameObject.Find("WaveStarter").GetComponent <WaveStarter>(); wave = waves.manag.wave; bgm.SetVolumn(0.5f); }
private void OnTriggerEnter2D(Collider2D collision) { BGM.Play(playMusicTrack); BGM.SetVolumn(0.15f); this.gameObject.SetActive(false); }