public bool PlayWeatherMusic(string audioName, float fadeInTime) { string eventName = string.Empty; string switchGroup = string.Empty; string switchState = string.Empty; if (CUnityUtil.IsWwiseAudioName(audioName)) { CUnityUtil.GetWwiseAudioName(audioName, out eventName, out switchGroup, out switchState); } else { return(false); } #if false //LOG_WWISE && UNITY_EDITOR Common.HobaDebuger.LogWarningFormat("[UnityAudio] Playing [Wwise] Event: {0} SwitchGroup: {1} SwitchState: {2}", eventName, switchGroup, switchState); #endif if (_WeatherSoundEntry.IsEnabled) { CheckAudioListener(); SafeInitGameObject(_WeatherSoundEntry, "weather"); LoadAndPlayMusic(_WeatherSoundEntry, eventName, switchGroup, switchState); } return(true); }