Example #1
0
        public void PlaySound(Enum.BGMScene sound, Enum.BGMScene endToBGM)
        {
            _bgmView.PlaySound(_bgmModel.GetSceneBGM(sound));

            _bgmView.OnCompleteSound.Subscribe(_ =>
            {
                _bgmView.PlayLoopBGM(_bgmModel.GetSceneBGM(endToBGM));
            });
        }
Example #2
0
 public AudioClip GetSceneBGM(Enum.BGMScene scene)
 {
     return(_bgmDictionary[scene].AudioFile);
 }
Example #3
0
 public void ChangeBGM(Enum.BGMScene scene)
 {
     _bgmView.PlayLoopBGM(_bgmModel.GetSceneBGM(scene));
 }