示例#1
0
        /// <summary>
        /// Update portions of the game loop done here.
        /// </summary>
        /// <param name="gameTime"></param>
        internal void Update(IGameTime gameTime)
        {
            if (FirstUpdate)
            {
                FirstUpdate = false;
            }

            _input.Update(gameTime);
            ActiveGameStage.Input = _input;
            ActiveGameStage.Update(gameTime);
        }
示例#2
0
 /// <summary>
 /// Render portions of the game loop here.
 /// </summary>
 /// <param name="gameTime"></param>
 internal void Render(IGameTime gameTime)
 {
     ActiveGameStage?.Render(gameTime);
 }