public static AudioSource PlaySaveBGM(BGMFileInfos info, bool isLoop, bool isSave) { if (isSave) { SoundUtils.SaveBGM(info); } if (SingletonMonoBehaviour <SoundManager> .Instance != null) { return(SingletonMonoBehaviour <SoundManager> .Instance.PlayBGM(info, isLoop)); } return(null); }
public static AudioSource PlaySaveBGM(AudioClip clip, bool isLoop, bool isSave) { if (isSave) { SoundUtils.SaveBGM(clip); } if (SingletonMonoBehaviour <SoundManager> .Instance != null) { return(SingletonMonoBehaviour <SoundManager> .Instance.PlayBGM(clip, isLoop)); } return(null); }