コード例 #1
0
ファイル: GeBoAPIBase.cs プロジェクト: GeBo1/GeBoPlugins
        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
        }
コード例 #2
0
 internal void Main()
 {
     Instance = this;
     Logger   = base.Logger;
 }