private void Awake() { DontDestroyOnLoad(gameObject); plugins = new CompositePlugin(PluginManager.Plugins); plugins.OnApplicationStart(); }
void Awake() { DontDestroyOnLoad(gameObject); plugins = new CompositePlugin(PluginManager.Plugins); plugins.OnApplicationStart(); SceneManager.activeSceneChanged += OnActiveSceneChanged; SceneManager.sceneLoaded += OnSceneLoaded; SceneManager.sceneUnloaded += OnSceneUnloaded; }
void Awake() { DontDestroyOnLoad(this); if (Environment.CommandLine.Contains("--verbose") && !Screen.fullScreen) { Windows.GuiConsole.CreateConsole(); } plugins = new CompositePlugin(PluginManager.Plugins); plugins.OnApplicationStart(); }
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; }