BGClass GetBGList(BG_TYPE _type) { for (int i = 0, iMax = listBG.Count; i < iMax; i++) { if (listBG [i].type == _type) { return(listBG [i]); } } return(null); }
public void ChangeBGSound(BG_TYPE bgType) { if (cur_bg == bgType) { return; } switch (bgType) { case BG_TYPE.InGame: BGM_BossSpawned_AudioSource.Stop(); BGM_Normal_AudioSource.Play(); break; case BG_TYPE.BossSpawned: BGM_Normal_AudioSource.Pause(); BGM_BossSpawned_AudioSource.Play(); break; } cur_bg = bgType; }
private void Awake() { S = this; cur_bg = BG_TYPE.InGame; }