public static void Update(GameTime gameTime, MouseState mouseState) { if (allowAnswer == true) { _submitAnswer.stateEnabled = true; _revealAnswer.stateEnabled = true; } else { _submitAnswer.stateEnabled = false; _revealAnswer.stateEnabled = false; } //llamo a la función Update de los bang _submitAnswer.Update(gameTime, mouseState); _revealAnswer.Update(gameTime, mouseState); }
public static void Update(GameTime gameTime, MouseState mouseState) { _reset.Update(gameTime, mouseState); _score = $"CORRECT TYPES: {correctTypes} ({correctTypesPercentage}%) | CORRECT INVERSIONS: {correctInversions} ({correctInversionsPercentage}%) | TOTAL ANSWERS: {totalAnswers}"; }