Esempio n. 1
0
    private void CalculatorButtonPressed(Calculator.CalculatorButtonPressedEvent evt)
    {
        if (evt.Name != "enter")
        {
            return;
        }

        var ge = GameEventBuilder
                 .EnvironmentVariable(name, "calculated_value", evt.CurrentNumber)
                 .Add(GameEventBuilder.UseObject("operation", "submit-value"));

        var res = AssessmentManager.Instance.Send(ge);

        GuiPendulum.ShowFeedback(res.Feedback);
    }
Esempio n. 2
0
 private static void ButtonBoolPressed(string VariableName, bool value)
 {
     AssessmentManager.Instance.Send(
         GameEventBuilder.EnvironmentVariable("assessment", VariableName, value)
         );
 }