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