Exemplo n.º 1
0
        private static void Instantiate()
        {
            Configurator configurator = new Configurator();

            configurator.Init(isUnitTest: false);
            if (configurator.IsSystemEnabled(typeof(Logger)))
            {
                IDictionary <string, object> dictionaryForSystem = configurator.GetDictionaryForSystem(typeof(Logger));
                m_instance = new Logger();
                m_instance.Configure(dictionaryForSystem);
            }
            else
            {
                m_instance = new Logger();
            }
        }
Exemplo n.º 2
0
        protected virtual void InitBootStrappingSystems()
        {
            m_eventDispatcher = new EventDispatcher();
            m_configurator    = new Configurator();
            m_configurator.Init(isUnitTest: false);
            if (m_configurator.IsSystemEnabled(typeof(Logger)))
            {
                IDictionary <string, object> dictionaryForSystem = m_configurator.GetDictionaryForSystem(typeof(Logger));
                Logger = new Logger();
                Logger.Configure(dictionaryForSystem);
            }
            InitAction initAction = new InitActionEnvironmentManager();

            initAction.Configurator    = m_configurator;
            initAction.EventDispatcher = m_eventDispatcher;
            CoroutineHelper.RunCoroutineToCompletion(initAction.Perform());
        }