Пример #1
0
 public BackGroundMusicPlayer PlayBGM_IntroFadeInOut(SoundNameBGM _mainSoundName, SoundNameBGM _introSoundName, float _fadeInTime, float _fadeOutTime, float _crossFadeRate, bool _isLoop = DefaultParamIsLoop, float _volume = DefaultParamVolume, float _delay = DefaultParamDelay, UnityAction _onIntroStart = null, UnityAction _onIntroComplete = null, UnityAction _onMainStart = null, UnityAction _onMainComplete = null)
 {
     return(PlayBGM(_mainSoundName.ToString(), _introSoundName.ToString(), _volume, _delay, _isLoop, _fadeInTime, _fadeOutTime, _crossFadeRate, _onIntroStart, _onIntroComplete, _onMainStart, _onMainComplete));
 }
Пример #2
0
 public BackGroundMusicPlayer PlayBGM(SoundNameBGM _mainSoundName, bool _isLoop = DefaultParamIsLoop, float _volume = DefaultParamVolume, float _delay = DefaultParamDelay, UnityAction _onIntroStart = null, UnityAction _onIntroComplete = null, UnityAction _onMainStart = null, UnityAction _onMainComplete = null)
 {
     return(PlayBGM(_mainSoundName.ToString(), "", _volume, _delay, _isLoop, 0.0f, 0.0f, 0.0f, _onIntroStart, _onIntroComplete, _onMainStart, _onMainComplete));
 }