Skip to content

Commit 204dd89

Browse files
authored
update EzyWSProxy (#65)
1 parent 8ef7668 commit 204dd89

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

unity/EzyWSProxy.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace com.tvd12.ezyfoxserver.client.unity
55
{
66
public class EzyWSProxy
77
{
8+
#if UNITY_WEBGL && !UNITY_EDITOR
89
[DllImport("__Internal")]
910
public static extern void setEventHandlerCallback(
1011
EzyDelegates.EventHandlerDelegate callback
@@ -35,5 +36,33 @@ public static extern void run4(
3536
String jsonData,
3637
EzyDelegates.Delegate2 callback
3738
);
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
3867
}
3968
}

0 commit comments

Comments
 (0)