File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ namespace com.tvd12.ezyfoxserver.client.unity
5
5
{
6
6
public class EzyWSProxy
7
7
{
8
+ #if UNITY_WEBGL && ! UNITY_EDITOR
8
9
[ DllImport ( "__Internal" ) ]
9
10
public static extern void setEventHandlerCallback (
10
11
EzyDelegates . EventHandlerDelegate callback
@@ -35,5 +36,33 @@ public static extern void run4(
35
36
String jsonData ,
36
37
EzyDelegates . Delegate2 callback
37
38
) ;
39
+ #else
40
+ public static void setEventHandlerCallback (
41
+ EzyDelegates . EventHandlerDelegate callback
42
+ ) { }
43
+
44
+ public static void setDataHandlerCallback (
45
+ EzyDelegates . DataHandlerDelegate callback
46
+ ) { }
47
+
48
+ public static void setDebug ( bool debug ) { }
49
+
50
+ public static bool isMobile ( ) {
51
+ return false ;
52
+ }
53
+
54
+ public static void run3 (
55
+ String clientName ,
56
+ String functionName ,
57
+ EzyDelegates . Delegate2 callback
58
+ ) { }
59
+
60
+ public static void run4 (
61
+ String clientName ,
62
+ String functionName ,
63
+ String jsonData ,
64
+ EzyDelegates . Delegate2 callback
65
+ ) { }
66
+ #endif
38
67
}
39
68
}
You can’t perform that action at this time.
0 commit comments