private void SetupRuntime(Mock <IJSInProcessRuntime> runtime, JsonElement returnValue) { runtime.Setup((runtime) => runtime.Invoke <JsonElement>( It.IsAny <string>(), JSFunctions.GetFileJS(path))) .Returns(returnValue); }
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); }
// Events private void OnTextToSpeechClicked() { JSFunctions.TextToSpeech(m_QuestionText.text.ToString()); }