예제 #1
0
 public void OnDestroy()
 {
     Instance = null;
     EnhancedTouchSupport.Disable();
     WebRTC.WebRTC.Dispose();
     RemoteInputReceiver.Dispose();
     Unity.WebRTC.Audio.Stop();
 }
예제 #2
0
        public void Awake()
        {
            Instance = this;
            var encoderType = hardwareEncoderSupport ? EncoderType.Hardware : EncoderType.Software;

            WebRTC.WebRTC.Initialize(encoderType);
            m_defaultInput = new DefaultInput();
            EnhancedTouchSupport.Enable();
        }
예제 #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;
        }