public void InitConfigs(Dictionary <string, string> configs)
        {
            Debug.Log($"GlobalBlockUnity InitConfigs / StopWatch = {_stopwatch.Elapsed.Seconds} FromStart = {Time.realtimeSinceStartup}");

            ConfigLoaderHelper.SetConfigsToConsumables(configs, GlobalFacade.AdjustHelper);

            configs.TryGetValue("canUse", out var canUseString);
            bool.TryParse(canUseString, out var canUse);

            if (canUse)
            {
                ConfigLoaderHelper.SetConfigsToConsumables(configs, GlobalFacade.Logger, GlobalFacade.Notification);

                Debug.Log($"GlobalBlockUnity Complete / StopWatch = {_stopwatch.Elapsed.Seconds} FromStart = {Time.realtimeSinceStartup}");

                _webManager.Init();
            }
            else
            {
                Debug.Log($"GlobalBlockUnity InitConfigs / canUse = false");
                _navigation.GoToNativeBlock();
            }

            _stopwatch.Stop();
        }
Exemple #2
0
        public void InitConfigs(Dictionary <string, string> configs)
        {
            Debug.Log("WebVariant1 InitConfigs");

            ConfigLoaderHelper.SetConfigsToConsumables(configs, UrlLoader, ParamsManager);
            Debug.Log($"WebVariant1 Complete / StopWatch = {_stopwatch.Elapsed.Seconds} FromStart = {Time.realtimeSinceStartup}");
            _stopwatch.Stop();

            _mediator.Start();
        }