コード例 #1
0
        protected override void Update(GameTime gameTime)
        {
            // if (!ShouldUpdate(ref gameTime))
            //     return;

            if (ShouldQuit)
            {
                Exit();
            }

            // Update all of our util stuff !DO FIRST ALWAYS
            UtilManager.Update(gameTime);

            InputManager.Update();
            ScreenManager.Update();

            UtilManager.AfterUpdate(gameTime);

            // base update. Calls the base classes update method !DO LAST ALWAYS
            base.Update(gameTime);
        }