//---------------------------------------------------------------------- public virtual void Update(float _fElapsedTime) { MenuScreen.IsActive = Game.IsActive && (Game.GameStateMgr == null || !Game.GameStateMgr.IsSwitching) && mPopupStack.Count == 0; PopupScreen.IsActive = Game.IsActive && (Game.GameStateMgr == null || !Game.GameStateMgr.IsSwitching) && mPopupStack.Count > 0; MenuScreen.HandleInput(); if (mPopupStack.Count > 0) { PopupScreen.HandleInput(); } MenuScreen.Update(_fElapsedTime); if (mPopupStack.Count > 0) { PopupScreen.Update(_fElapsedTime); } }