protected override void OnFinalize() { UnloadMovie(); RemoveLayer(this._gauntletLayer); _dataSource = null; _gauntletLayer = null; CharacterSelectionView.OnFinalize(); base.OnFinalize(); }
protected override void OnInitialize() { base.OnInitialize(); _dataSource = new EnhancedBattleTestVM(_state, _title); _gauntletLayer = new GauntletLayer(1) { IsFocusLayer = true }; LoadMovie(); _gauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("GenericPanelGameKeyCategory")); _gauntletLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All); ScreenManager.TrySetFocus(_gauntletLayer); _dataSource.SetActiveState(true); AddLayer(_gauntletLayer); var collection = CharacterCollection.Create(EnhancedBattleTestSubModule.IsMultiplayer); collection.Initialize(); CharacterSelectionView = new CharacterSelectionView(); CharacterSelectionView.Initialize(this, collection, EnhancedBattleTestSubModule.IsMultiplayer); }