Exemple #1
0
        public override void CloseScreen()
        {
            if (_trafficGame != null)
            {
                _trafficGame.GameClosed -= new EventHandler(GameClosedEventArgs);
            }

            _trafficGame = null;

            base.CloseScreen();
        }
Exemple #2
0
        public override void LoadContent()
        {
            _trafficGame = new TimeoutGame(ScreenManager);

            if (_trafficGame != null)
            {
                _trafficGame.LoadContent();
                _trafficGame.GameClosed += new EventHandler(GameClosedEventArgs);
            }

            base.LoadContent();
        }