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