Пример #1
0
 private void SetupRuntime(Mock <IJSInProcessRuntime> runtime, JsonElement returnValue)
 {
     runtime.Setup((runtime) => runtime.Invoke <JsonElement>(
                       It.IsAny <string>(),
                       JSFunctions.GetFileJS(path)))
     .Returns(returnValue);
 }
Пример #2
0
    private void OnExit()
    {
        PlayClickSound();

        // Simulate web browser "back" function
        JSFunctions.CloseCurrentPage();
    }
 private void SetupRuntime(Mock <IJSInProcessRuntime> runtime, JsonElement returnValue)
 {
     runtime.Setup((runtime) => runtime.Invoke <JsonElement>(
                       It.IsAny <string>(),
                       JSFunctions.GetMetatagsJS(keyLabel, valueLabel)))
     .Returns(returnValue);
 }
Пример #4
0
    // Events

    private void OnTextToSpeechClicked()
    {
        JSFunctions.TextToSpeech(m_QuestionText.text.ToString());
    }