private void OnDestroy() { NativeRenderingPluginUpdate.DecRef(this); // Teardown will also get called when the PeerConnection is destroyed. // So this is probably going to be called twice in many cases. TearDown(); }
private void Awake() { NativeRenderingPluginUpdate.AddRef(this); }