예제 #1
0
        void OnDisable()
        {
            lock (this)
            {
                if (_sink)
                {
                    _sink.RemoveSource(this);
                }

                if (_sourceInstance != System.IntPtr.Zero)
                {
                    NativePlugin.RemoveAmbisonicSourceInstance(_sourceInstance);
                    _sourceInstance = System.IntPtr.Zero;
                }
            }
        }