public override void CloseScreen() { if (_trafficGame != null) { _trafficGame.GameClosed -= new EventHandler(GameClosedEventArgs); } _trafficGame = null; base.CloseScreen(); }
public override void LoadContent() { _trafficGame = new TimeoutGame(ScreenManager); if (_trafficGame != null) { _trafficGame.LoadContent(); _trafficGame.GameClosed += new EventHandler(GameClosedEventArgs); } base.LoadContent(); }