Skip to content

Commit 29e7800

Browse files
committed
fix: bindings for ios
1 parent 0efbc43 commit 29e7800

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

Assets/Dojo/Runtime/Starknet/StarknetInterop.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Newtonsoft.Json;
1010
using Debug = UnityEngine.Debug;
1111

12+
#if UNITY_WEBGL && !UNITY_EDITOR
1213
namespace Dojo.Starknet {
1314
public class StarknetInterop {
1415
[DllImport("__Internal")]
@@ -116,4 +117,5 @@ public static Task<bool> WaitForTransactionAsync(IntPtr provider, FieldElement t
116117
[DllImport("__Internal")]
117118
public static extern bool Verify(CString publicKey, CString hash, CString r, CString s);
118119
}
119-
}
120+
}
121+
#endif

Assets/Dojo/Runtime/Torii/ToriiWasmClient.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Newtonsoft.Json;
88
using UnityEngine;
99

10+
#if UNITY_WEBGL && !UNITY_EDITOR
1011
namespace Dojo.Torii
1112
{
1213
public class ToriiWasmClient
@@ -53,4 +54,5 @@ public async Task<byte[]> PublishMessage(string topic, byte[] data)
5354
return await ToriiWasmInterop.PublishMessageAsync(clientPtr, topic, data);
5455
}
5556
}
56-
}
57+
}
58+
#endif

Assets/Dojo/Runtime/Torii/ToriiWasmInterop.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Linq;
1212
using Newtonsoft.Json.Linq;
1313

14+
#if UNITY_WEBGL && !UNITY_EDITOR
1415
namespace Dojo.Torii
1516
{
1617
[Serializable]
@@ -234,4 +235,5 @@ public static void OnMessage(IntPtr clientPtr)
234235
OnMessage(clientPtr, OnMessageHelper.Callback);
235236
}
236237
}
237-
}
238+
}
239+
#endif

Assets/Dojo/Runtime/WorldManager.cs

+3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ public class WorldManager : MonoBehaviour
1919
public string worldAddress;
2020
public SynchronizationMaster synchronizationMaster;
2121
public ToriiClient toriiClient;
22+
23+
#if UNITY_WEBGL && !UNITY_EDITOR
2224
public ToriiWasmClient wasmClient;
25+
#endif
2326

2427
async void Awake()
2528
{

0 commit comments

Comments
 (0)