public void PlayMusic(MusicThemes inTheme)
        {
            var music = GetMusic(inTheme);

            if (music == null)
            {
                throw new WarningException($"Music Theme not found : {inTheme}");
            }

            _musicSource.clip   = music;
            _musicSource.volume = _config.musicVolume * _config.masterVolume;
            _musicSource.loop   = true;
            _musicSource.Play();
        }
 private AudioClip GetMusic(MusicThemes inTheme)
 {
     return(_config.musicMap.FirstOrDefault(m => m.theme == inTheme).audio);
 }