public static void Update(GameTime gameTime) { if (EncounterActive) { if (keyPause <= gameTime.TotalGameTime.TotalSeconds) { KeyboardState keyState = Keyboard.GetState(); if (lastEncounter.IsAction2() && (keyState.IsKeyDown(Keys.W) || keyState.IsKeyDown(Keys.Up) || keyState.IsKeyDown(Keys.S) || keyState.IsKeyDown(Keys.Down))) { highlightAction1 = !highlightAction1; keyPause = gameTime.TotalGameTime.TotalSeconds + .3; } } if (Keyboard.GetState().IsKeyDown(Keys.Enter)) { lastEncounter.EncounterResult(highlightAction1); FrameClear.IsClear = gameTime.TotalGameTime.TotalSeconds + 0.3; } } }
public override bool IsAction2() { return(tester.IsAction2()); }