File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
553555using UnityEngine ;
556+ #define REACT_UNITY_WEBGL = UNITY_WEBGL == true && UNITY_EDITOR == false;
554557
555558public 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 }
You can’t perform that action at this time.
0 commit comments