using PhxhSDK; using System; using Framework; using System.Collections.Generic; using cfg.AudioCfg; using CriWare; using CriWare.Assets; using Cysharp.Threading.Tasks; using UnityEngine; using UnityEngine.SceneManagement; using Object = UnityEngine.Object; using Constants = Framework.Constants; public class AudioCriwareManager : Singlenton, IStart, IInitable, IUpdatable, IAudioPlay { public GameObject initGameObject; public ClipType curClipType; protected float vol = 1f; protected float musicVol = 1f; protected float soundsVol = 1f; protected float speakVol = 1f; protected Dictionary musicAudio; protected Dictionary soundsAudio; protected Dictionary loadingAcb; private List _rootGoList; private Dictionary _audioDic; /// /// 背景音乐播放器 /// private Audio _bgmAudio; public Audio BgmAudio { get { return _bgmAudio; } } protected static int SOUNDS_POOL_MAX_NUM = 25; protected static int MUSIC_POOL_MAX_NUM = 5; protected bool banMusic = false; protected bool banSound = false; protected bool initialized = false; protected List _toBeRemoved = new List(); private bool _isOpenSpeakVoice = true; private GameObject _criError; private GameObject _criAtomGo; private static Queue