예제 #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());
    }