public new void OnFinalize() { base.OnFinalize(); PartyScreenConfig.Save(); if (Game.Current != null) { Game.Current.AfterTick = (Action <float>)Delegate.Remove(Game.Current.AfterTick, new Action <float>(AfterTick)); } _partyEnhancementsVm = null; _sorterPane = null; _generalPane = null; }
public SettingScreenVM(PartyEnhancementsVM parent, GauntletPartyScreen parentScreen) { _partyEnhancementsVm = parent; _parentScreen = parentScreen; _sorterPane = new SettingSorterOverlayVM(this); _generalPane = new SettingGeneralPaneVM(); _miscPane = new SettingMiscPaneVM(); if (Game.Current != null) { Game.Current.AfterTick = (Action <float>)Delegate.Combine(Game.Current.AfterTick, new Action <float>(AfterTick)); } }