Beispiel #1
0
 protected override void OnFinalize()
 {
     base.OnFinalize();
     RemoveLayer(_gauntletLayer);
     _dataSource    = null;
     _gauntletLayer = null;
 }
Beispiel #2
0
        protected override void OnInitialize()
        {
            base.OnInitialize();

            _dataSource = new SettlementAssassinateScreenViewModel(_sneakInHandler, _settlement);

            _gauntletLayer = new GauntletLayer(100)
            {
                IsFocusLayer = true
            };

            AddLayer(_gauntletLayer);

            _gauntletLayer.InputRestrictions.SetInputRestrictions();

            _movie = _gauntletLayer.LoadMovie("AssassinateAtSettlementScreen", _dataSource);
        }