Ejemplo n.º 1
0
        /// <summary>
        /// [Android] Undo the <see cref="Initialize">. It doesn't affect any loaded audio, just dispose all the native players.
        /// Disposing twice is safe, it does nothing.
        /// </summary>
        public static void Dispose()
        {
#if UNITY_ANDROID
            if (Initialized)
            {
                NativeAudio.disposeIfAllocated();
                Initialized = false;
            }
#else
            return;
#endif
        }