private void Awake() { _instance = this; EnableObjectPoolsConfig = Config.Bind("Developer Settings", "Enable ObjectPools", true, new ConfigDescription("Leave enabled unless requested otherwise", null, "Advanced")); EnableObjectPoolsConfig.SettingChanged += EnableObjectPoolsConfig_SettingChanged; EnableObjectPools = EnableObjectPoolsConfig.Value; Common.SetCurrentLogger(Logger); #if TIMERS TimersEnabledConfig = Config.Bind("Developer Settings", "Enable Timer Messages", false, new ConfigDescription("Adds log messages for how long certain events take.", null, "Advanced")); TimersEnabledConfig.SettingChanged += TimersEnabledConfig_SettingChanged; TimersEnabledConfig_SettingChanged(this, EventArgs.Empty); #endif }
internal void Main() { Instance = this; Logger = base.Logger; }