/// <summary> /// Destroys the internal listener representation. /// </summary> private void DestroyNative() { if (native != null) { native.Destroy(); native = null; } }
/// <summary> /// Creates the internal representation of the listener and restores the values saved by the component. /// </summary> private void RestoreNative() { native = new NativeAudioListener(); UpdateTransform(); }