using System; using Framework; using System.Collections.Generic; using CriWare; using CriWare.Assets; using Cysharp.Threading.Tasks; using UnityEngine; using UnityEngine.SceneManagement; using Object = UnityEngine.Object; namespace PhxhSDK { public class AudioManager : Singlenton, IStart, IInitable, IUpdatable { public GameObject initGameObject; public enum ClipType { AudioClip, CriwareClip } public ClipType curClipType; protected float vol = 1f; protected float musicVol = 1f; protected float soundsVol = 1f; protected Dictionary musicAudio; protected Dictionary soundsAudio; protected Dictionary loadingAcb; protected static int SOUNDS_POOL_MAX_NUM = 50; protected static int MUSIC_POOL_MAX_NUM = 10; protected bool banMusic = false; protected bool banSound = false; protected bool initialized = false; protected List _toBeRemoved = new List(); private GameObject _criError; private GameObject _criAtomGo; private static Queue