Skip to content

Commit a06fb77

Browse files
committed
Update README links and clean up comments
- Changed the file path for adding WebView RPC files in both English and Korean README. - Removed outdated comments related to VuplexBridge class.
1 parent ab87146 commit a06fb77

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ With WebView RPC, method calls between C# and JavaScript behave like regular fun
8686
### Adding WebView Library
8787

8888
- WebView RPC is not distributed as a package.
89-
- Add the files under [Unity-WebViewRpc/Assets/StreamingAssets/MocLib](https://github.com/kwan3854/Unity-WebViewRpc/tree/main/Assets/StreamingAssets/MocLib) to your JavaScript project.
89+
- Add the files under [Unity-WebViewRpc/WebViewRpcJS/RuntimeLibrary](https://github.com/kwan3854/Unity-WebViewRpc/tree/main/WebViewRpcJS/RuntimeLibrary) to your JavaScript project.
9090

9191
### Installing the protobuf Compiler
9292

@@ -248,16 +248,6 @@ public class ViewplexWebViewBridge : IWebViewBridge
248248
```
249249

250250
```javascript
251-
/***************************************************************
252-
* VuplexBridge (modified)
253-
*
254-
* - JS -> C#: "window.vuplex.postMessage(base64Str)"
255-
* - C# -> JS: "window.addEventListener('vuplexmessage', ...)"
256-
*
257-
* => If JS already has the Protobuf -> Base64 converted string,
258-
* pass it as 'sendMessage(base64)',
259-
* and it will be forwarded to C# as is.
260-
***************************************************************/
261251
export class VuplexBridge {
262252
constructor() {
263253
this._onMessageCallback = null;

README_ko.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ flowchart LR
7070
```
7171
### 웹뷰 라이브러리 추가하기
7272
- WebView RPC는 패키지로 배포되지 않습니다.
73-
- [Unity-WebViewRpc/Assets/StreamingAssets
74-
/MocLib](https://github.com/kwan3854/Unity-WebViewRpc/tree/main/Assets/StreamingAssets/MocLib) 하위의 파일들을 javascript 프로젝트에 추가합니다.
73+
- [Unity-WebViewRpc/WebViewRpcJS/RuntimeLibrary](https://github.com/kwan3854/Unity-WebViewRpc/tree/main/WebViewRpcJS/RuntimeLibrary) 하위의 파일들을 javascript 프로젝트에 추가합니다.
7574

7675
### protobuf 파일 생성기 설치
7776
#### protobuf 파일을 C#과 javascript로 변환하기 위해 `protoc` 컴파일러를 사용합니다.
@@ -217,16 +216,6 @@ public class ViewplexWebViewBridge : IWebViewBridge
217216
}
218217
```
219218
```javascript
220-
/***************************************************************
221-
* VuplexBridge (modified)
222-
*
223-
* - JS -> C#: "window.vuplex.postMessage(base64Str)"
224-
* - C# -> JS: "window.addEventListener('vuplexmessage', ...)"
225-
*
226-
* => JS에서 이미 Protobuf -> Base64 변환된 문자열을
227-
* 'sendMessage(base64)'로 넘기면,
228-
* 그대로 C#에 전송.
229-
***************************************************************/
230219
export class VuplexBridge {
231220
constructor() {
232221
this._onMessageCallback = null;

0 commit comments

Comments
 (0)