示例#1
0
        private static void Init()
        {
            if (_instance == null)
            {
                _instance = new MasterBinds();
                Cfg       = MasterConfig.Current.binds;

                MasterConfig.OnConfigSave += _instance.UpdateConfig;
                MasterConfig.OnConfigLoad += _instance.UpdateBinds;
            }
        }
示例#2
0
 public override void Close()
 {
     MasterConfig.OnConfigSave -= UpdateConfig;
     MasterConfig.OnConfigLoad -= UpdateBinds;
     Instance = null;
 }