Exemple #1
0
        public bool Update(GameTime time)
        {
            while (ActiveState != null && ActiveState.isDead)
            {
                ActiveState.Destroy();
                _gameStates.Remove(ActiveState);
            }

            if (_gameStates.Count > 0)
            {
                ActiveState.Update(time);
            }
            else
            {
                return(false);
            }
            return(true);
        }