public void OnDestroy() { Instance = null; EnhancedTouchSupport.Disable(); WebRTC.WebRTC.Dispose(); RemoteInputReceiver.Dispose(); Unity.WebRTC.Audio.Stop(); }
public void Awake() { Instance = this; var encoderType = hardwareEncoderSupport ? EncoderType.Hardware : EncoderType.Software; WebRTC.WebRTC.Initialize(encoderType); m_defaultInput = new DefaultInput(); EnhancedTouchSupport.Enable(); }
public void Awake() { Instance = this; var encoderType = hardwareEncoderSupport ? EncoderType.Hardware : EncoderType.Software; WebRTC.WebRTC.Initialize(encoderType); m_defaultInput = new DefaultInput(); EnhancedTouchSupport.Enable(); m_mainThreadContext = SynchronizationContext.Current; }