public static void PlayMusicPack(MusicPack pack, float delayTime, float snapshotTransitionTime, bool applySnapshot = true) { AudioMixer_I.Instance.PlayMusicPack(pack, delayTime, snapshotTransitionTime, applySnapshot); /*if (ApplyMusicRoutine != null) * { * StopCoroutine(ApplyMusicRoutine); * ApplyMusicRoutine = null; * } * * ApplyMusicRoutine = StartCoroutine(ApplyMusicPack(pack, delayTime, snapshotTransitionTime, applySnapshot));*/ }
public static void PlayMusicPack(MusicPack pack) { PlayMusicPack(pack, pack.delay, pack.snapshotTransitionTime, pack.applySnapshot); }