protected override void OnFinalize() { base.OnFinalize(); _gauntletLayer = null; _dataSource = null; _movie = null; }
protected override void OnInitialize() { base.OnInitialize(); _dataSource = new TownRevolutionViewModel(this._settlementInfo, this._factionInfo); _gauntletLayer = new GauntletLayer(100); _gauntletLayer.IsFocusLayer = true; AddLayer(_gauntletLayer); _gauntletLayer.InputRestrictions.SetInputRestrictions(); ScreenManager.TrySetFocus(_gauntletLayer); _movie = _gauntletLayer.LoadMovie("TownRevolutionScreen", _dataSource); _firstRender = true; }