private static void Init() { if (_instance == null) { _instance = new MasterBinds(); Cfg = MasterConfig.Current.binds; MasterConfig.OnConfigSave += _instance.UpdateConfig; MasterConfig.OnConfigLoad += _instance.UpdateBinds; } }
public override void Close() { MasterConfig.OnConfigSave -= UpdateConfig; MasterConfig.OnConfigLoad -= UpdateBinds; Instance = null; }