public void Update(float dt)
        {
            if (Input.DebugInput.IsHotKeyPressed("ResetMusicParameters"))
            {
                MusicParameters.LoadFromXml();
            }
            if (GameStateManager.Current != null && GameStateManager.Current.ActiveState != null)
            {
                GameState activeState = GameStateManager.Current.ActiveState;
                switch (this.CurrentMode)
                {
                case MusicMode.Paused:
                    if (activeState.IsMusicMenuState)
                    {
                        this.ActivateMenuMode();
                        break;
                    }
                    break;

                case MusicMode.Menu:
                    if (!activeState.IsMusicMenuState)
                    {
                        this.DeactivateMenuMode();
                        break;
                    }
                    break;
                }
            }
            if (this._activeMusicHandler != null)
            {
                this._activeMusicHandler.OnUpdated(dt);
            }
            int num = (int)PsaiCore.Instance.Update();
        }
 private static void ProcessCreation(object callback)
 {
     MBMusicManager.Current = new MBMusicManager();
     MusicParameters.LoadFromXml();
     MBMusicManager._creationCompleted = true;
 }