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