コード例 #1
0
        private void Awake()
        {
            DontDestroyOnLoad(gameObject);

            plugins = new CompositePlugin(PluginManager.Plugins);
            plugins.OnApplicationStart();
        }
コード例 #2
0
        void Awake()
        {
            DontDestroyOnLoad(gameObject);

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

            SceneManager.activeSceneChanged += OnActiveSceneChanged;
            SceneManager.sceneLoaded        += OnSceneLoaded;
            SceneManager.sceneUnloaded      += OnSceneUnloaded;
        }
コード例 #3
0
        void Awake()
        {
            DontDestroyOnLoad(this);

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

            plugins = new CompositePlugin(PluginManager.Plugins);
            plugins.OnApplicationStart();
        }
コード例 #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;
        }