示例#1
0
        /// <summary>
        /// Функция последовательной инициализации
        /// </summary>
        public void OnStart()
        {
            _debugController  = FindObjectOfType <DebugController>();
            _debugInitialized = _debugController != null;

            Application.targetFrameRate = 300;
            SetSubscription();

            _untilAllReady    = new WaitUntil(ComponentsAreReady);
            _notCaptureLocked = new WaitUntil(() => !_captureLocked);

            foreach (var deviceController in DeviceControllers)
            {
                deviceController.Initialize();
            }
            hardwareController.Initialize();

            StartCoroutine(EWideFiledRun());
        }