Ejemplo n.º 1
0
 protected override void OnFinalize()
 {
     base.OnFinalize();
     RemoveLayer(_gauntletLayer);
     _dataSource    = null;
     _gauntletLayer = null;
 }
Ejemplo n.º 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);
        }