| ␍␊ |
| public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)␍␊ |
| {␍␊ |
| if (otherScreenHasFocus)␍␊ |
| if (otherScreenHasFocus && !screenHidden)␍␊ |
| {␍␊ |
| screenHidden = true;␍␊ |
| this.Deactivate();␍␊ |
| }␍␊ |
| ␍␊ |
| if (screenHidden && !otherScreenHasFocus)␍␊ |
|
| {␍␊ |
| //this.IsExiting = true;␍␊ |
| //System.Diagnostics.Debugger.Break();␍␊ |
| base.Deactivate();␍␊ |
| ScreenState = GameStateManagement.ScreenState.TransitionOff;␍␊ |
| AxiosLog.Instance.AddLine("Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG);␍␊ |
| foreach (AxiosGameObject g in _gameObjects)␍␊ |
|
| }␍␊ |
| #endif␍␊ |
| ␍␊ |
| ␍␊ |
| }␍␊ |
| ␍␊ |
| ␍␊ |