示例#1
0
        public TestARSupportProvider()
        {
            AddDisposable(m_ARIsReady = m_ARIsCheckedAndSupported
                                        .And(m_IsInstalling.Not())
                                        .And(m_NeedARInstall.Not())
                                        .ToReadOnlyReactiveProperty());

            AddDisposable(MainThreadDispatcher.UpdateAsObservable()
                          .Where(_ => Input.GetKeyDown(KeyCode.Q))
                          .Subscribe(_ => m_ARIsCheckedAndSupported.Value = true));
        }