Esempio n. 1
0
        private void Awake()
        {
            DontDestroyOnLoad(gameObject);

            plugins = new CompositePlugin(PluginManager.Plugins);
            plugins.OnApplicationStart();
        }
Esempio n. 2
0
        void Awake()
        {
            DontDestroyOnLoad(gameObject);

            plugins = new CompositePlugin(PluginManager.Plugins);
            plugins.OnApplicationStart();

            SceneManager.activeSceneChanged += OnActiveSceneChanged;
            SceneManager.sceneLoaded        += OnSceneLoaded;
            SceneManager.sceneUnloaded      += OnSceneUnloaded;
        }
Esempio n. 3
0
        void Awake()
        {
            DontDestroyOnLoad(this);

            if (Environment.CommandLine.Contains("--verbose") && !Screen.fullScreen)
            {
                Windows.GuiConsole.CreateConsole();
            }

            plugins = new CompositePlugin(PluginManager.Plugins);
            plugins.OnApplicationStart();
        }
Esempio n. 4
0
        void Awake()
        {
#if DEBUG
            logger.Debug("Awake()", "IPA");
#endif
            DontDestroyOnLoad(gameObject);

            plugins = new CompositePlugin(PluginManager.GetPlugins(logger), logger);
            plugins.OnApplicationStart();

            pluginLoggers = FindObjectsOfType <PluginLogger>();
            foreach (PluginLogger pluginLogger in pluginLoggers)
            {
                pluginLogger.Message += logger.Log;
            }

            SceneManager.activeSceneChanged += OnSceneChanged;
        }