示例#1
0
 protected override void OnFinalize()
 {
     base.OnFinalize();
     _gauntletLayer = null;
     _dataSource    = null;
     _movie         = null;
 }
示例#2
0
 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;
 }