void LoadSpecific(int index) { intro = Game.GameData.GetIntroSceneSpecific(index); scene.Dispose(); scene.BeginScene(intro.Scripts); scene.Update(1 / 60.0); //Do all the setup events - smoother entrance Game.Sound.PlayMusic(intro.Music); }
public override void Unregister() { Game.Keyboard.TextInput -= Game_TextInput; Game.Keyboard.KeyDown -= Keyboard_KeyDown; hud.Dispose(); scene.Dispose(); }
public override void Unregister() { #if DEBUG Game.Keyboard.KeyDown -= Keyboard_KeyDown; #endif Game.WillClose -= G_WillClose; manager.Dispose(); scene.Dispose(); }