Esempio n. 1
0
 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();
        }
Esempio n. 3
0
        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;
        }