void Start() { #if UNITY_EDITOR || UNITY_STANDALONE pathPrefix = "file://" + Application.streamingAssetsPath + "/Audios/"; #elif UNITY_ANDROID pathPrefix = Application.streamingAssetsPath + "/Audios/"; #endif instance = this; }
void OnDestroy() { instance = null; foreach (AudioClipWrapper ac in audioClips.Values) { Destroy(ac.audioClip); } audioClips.Clear(); }