Skip to content

Commit 086f271

Browse files
Minor changes to the documentation
1 parent 83602a4 commit 086f271

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ public class GameController : MonoBehaviour {
250250
private static extern void GameOver (string userName, int score);
251251

252252
public void SomeMethod () {
253+
#if (UNITY_WEBGL == true && UNITY_EDITOR == false)
253254
GameOver ("Player1", 100);
255+
#endif
254256
}
255257
}
256258
```
@@ -551,10 +553,11 @@ const App = () => {
551553
/// File: GameController.cs
552554
553555
using UnityEngine;
556+
#define REACT_UNITY_WEBGL = UNITY_WEBGL == true && UNITY_EDITOR == false;
554557

555558
public class GameController : MonoBehaviour {
556559
private void Start () {
557-
#if !UNITY_EDITOR && UNITY_WEBGL
560+
#if (UNITY_WEBGL == true && UNITY_EDITOR == false)
558561
WebGLInput.captureAllKeyboardInput = false;
559562
#endif
560563
}

0 commit comments

Comments
 (0)