public override void Update(DwarfTime gameTime) { foreach (var @event in DwarfGame.GumInputMapper.GetInputQueue()) { GuiRoot.HandleInput(@event.Message, @event.Args); if ([email protected]) { // Pass event to game... } } DialogueContext.Update(gameTime); GuiRoot.Update(gameTime.ToGameTime()); base.Update(gameTime); }
public override void Update(DwarfTime gameTime) { foreach (var @event in DwarfGame.GumInputMapper.GetInputQueue()) { GuiRoot.HandleInput(@event.Message, @event.Args); if ([email protected]) { if (@event.Args.KeyValue > 0) { DialogueContext.Skip(); } // Pass event to game... } } SoundManager.Update(gameTime, World.Camera, World.Time); GuiRoot.Update(gameTime.ToGameTime()); DialogueContext.Update(gameTime); World.TutorialManager.Update(GuiRoot); World.Paused = true; IsInitialized = true; base.OnEnter(); }