コード例 #1
0
        protected override void Update(GameTime gameTime)
        {
            Input.Update();
            GameState.Update(gameTime);

            base.Update(gameTime);
        }
コード例 #2
0
 /// <summary>
 /// Makes sure that the currently active game state calls Update.
 /// </summary>
 /// <param name="gameTime">An object containing information about the time that has passed in the game.</param>
 public void Update(GameTime gameTime)
 {
     if (currentGameState != null)
     {
         currentGameState.Update(gameTime);
     }
 }
コード例 #3
0
 public void Update(GameTime gameTime)
 {
     _current.Update(gameTime);
 }
コード例 #4
0
 public void Update(GameTime gameTime)
 {
     currentGameState?.Update(gameTime);
 }