protected override void Update(GameTime gameTime) { Sound.Update(); Music.Play("music1"); QuakeManager.Update(); ControlInput.Update(); FrameTime = (float)gameTime.ElapsedGameTime.TotalSeconds; if (SlowTime > 0f) { SlowTime -= FrameTime; FrameTime /= 10f; } switch (GameMode) { case GameModes.Playing: UpdateGame(); break; case GameModes.Menu: if (Menu.MenuMode == MenuMode.Dead) { var pTime = FrameTime; FrameTime /= 3f; UpdateGame(); FrameTime = pTime; } Menu.Update(this); break; } base.Update(gameTime); }
override public void Update(object state = null) { base.Update(state); //检测控制输入 ControlInput.Update(); }