Example #1
0
 public static AudioSource PlayBackground(string strAudioName, bool loop = true)
 {
     if (!string.IsNullOrEmpty(strAudioName))
     {
         //PlayBackground(_DicAudioClipLib[strAudioName]);
         return(PlayBackground(ResourcesManager.GetAudioClip(strAudioName), loop));
     }
     else
     {
         Debuger.LogWarning("[AudioManager.cs/PlayBackground()] strAudioName==null ! Please checked! ");
     }
     return(null);
 }
Example #2
0
 public static AudioSource Play(string strAudioEffectName, bool bLoop = false)
 {
     if (!string.IsNullOrEmpty(strAudioEffectName))
     {
         //Play(_DicAudioClipLib[strAudioEffectName]);
         return(Play(ResourcesManager.GetAudioClip(strAudioEffectName), bLoop));
     }
     else
     {
         Debuger.LogWarning("[AudioManager.cs/Play()] strAudioEffectName==null ! Please checked! ");
     }
     return(null);
 }