Skip to content

Commit 05bf1d6

Browse files
author
Zhichao Link
committed
update webgl
1 parent 291f7bb commit 05bf1d6

File tree

10 files changed

+1269
-233
lines changed

10 files changed

+1269
-233
lines changed

ParticleWebGLDemo/ParticleWebGLDemo/Assets/Plugins/WebGL/ParticleAuthWebGL/Share/UnityRpc/NodeService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public async static Task<string> Request(string path, string postData)
4747
ParticleUnityRpc.clientKey);
4848
Debug.Log($"Request params ${postData}");
4949
byte[] postDataJson = System.Text.Encoding.UTF8.GetBytes(postData);
50-
using (var www = UnityWebRequest.Post(url + path, UnityWebRequest.kHttpVerbPOST))
50+
using (var www = UnityWebRequest.PostWwwForm(url + path, UnityWebRequest.kHttpVerbPOST))
5151
{
5252
www.chunkedTransfer = false;
5353
www.uploadHandler = new UploadHandlerRaw(postDataJson);

ParticleWebGLDemo/ParticleWebGLDemo/Assets/Plugins/WebGL/ParticleAuthWebGL/particleAuth.jslib

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mergeInto(LibraryManager.library, {
33
const config = UTF8ToString(options);
44
console.log('InitParticleAuth', config);
55
const script = document.createElement('script');
6-
script.src = 'https://static.particle.network/sdks/web/auth/1.3.1/auth.min.js';
6+
script.src = 'https://static.particle.network/sdks/web/auth/1.3.3/auth.min.js';
77
script.onload = () => {
88
new particleAuth.ParticleNetwork(JSON.parse(config));
99
};

ParticleWebGLDemo/ParticleWebGLDemo/Assets/Scripts/Demo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public void Init()
3939
defaultWalletEntryPosition = new WalletEntryPosition { x = 0.0f, y = 0.0f },
4040
supportChains = new List<ChainInfo>
4141
{
42-
ChainInfo.SolanaDevnet
42+
ChainInfo.Sei
4343
}
4444
};
45-
var config = new InitConfig(projectId, clientKey, appId, ChainInfo.SolanaDevnet, securityAccount,
45+
var config = new InitConfig(projectId, clientKey, appId, ChainInfo.Sei, securityAccount,
4646
wallet);
4747

4848
ParticleAuth.Instance.Init(config);

ParticleWebGLDemo/ParticleWebGLDemo/Packages/manifest.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"dependencies": {
3-
"com.unity.collab-proxy": "2.2.0",
4-
"com.unity.nuget.newtonsoft-json": "3.2.1",
3+
"com.unity.ai.navigation": "1.1.5",
4+
"com.unity.collab-proxy": "2.5.1",
55
"com.unity.feature.development": "1.0.1",
6-
"com.unity.ide.rider": "3.0.27",
6+
"com.unity.ide.rider": "3.0.31",
77
"com.unity.ide.visualstudio": "2.0.22",
88
"com.unity.ide.vscode": "1.2.5",
9+
"com.unity.nuget.newtonsoft-json": "3.2.1",
910
"com.unity.test-framework": "1.1.33",
10-
"com.unity.textmeshpro": "3.0.6",
11-
"com.unity.timeline": "1.6.5",
11+
"com.unity.textmeshpro": "3.0.7",
12+
"com.unity.timeline": "1.7.6",
1213
"com.unity.ugui": "1.0.0",
13-
"com.unity.visualscripting": "1.9.1",
14+
"com.unity.visualscripting": "1.9.4",
1415
"com.unity.modules.ai": "1.0.0",
1516
"com.unity.modules.androidjni": "1.0.0",
1617
"com.unity.modules.animation": "1.0.0",

ParticleWebGLDemo/ParticleWebGLDemo/Packages/packages-lock.json

+19-21
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
22
"dependencies": {
3+
"com.unity.ai.navigation": {
4+
"version": "1.1.5",
5+
"depth": 0,
6+
"source": "registry",
7+
"dependencies": {
8+
"com.unity.modules.ai": "1.0.0"
9+
},
10+
"url": "https://packages.unity.com"
11+
},
312
"com.unity.collab-proxy": {
4-
"version": "2.2.0",
13+
"version": "2.5.1",
514
"depth": 0,
615
"source": "registry",
716
"dependencies": {},
@@ -27,16 +36,16 @@
2736
"source": "builtin",
2837
"dependencies": {
2938
"com.unity.ide.visualstudio": "2.0.22",
30-
"com.unity.ide.rider": "3.0.27",
39+
"com.unity.ide.rider": "3.0.31",
3140
"com.unity.ide.vscode": "1.2.5",
3241
"com.unity.editorcoroutines": "1.0.0",
3342
"com.unity.performance.profile-analyzer": "1.2.2",
3443
"com.unity.test-framework": "1.1.33",
35-
"com.unity.testtools.codecoverage": "1.2.5"
44+
"com.unity.testtools.codecoverage": "1.2.6"
3645
}
3746
},
3847
"com.unity.ide.rider": {
39-
"version": "3.0.27",
48+
"version": "3.0.31",
4049
"depth": 0,
4150
"source": "registry",
4251
"dependencies": {
@@ -75,7 +84,7 @@
7584
"url": "https://packages.unity.com"
7685
},
7786
"com.unity.settings-manager": {
78-
"version": "1.0.3",
87+
"version": "2.0.1",
7988
"depth": 2,
8089
"source": "registry",
8190
"dependencies": {},
@@ -93,7 +102,7 @@
93102
"url": "https://packages.unity.com"
94103
},
95104
"com.unity.testtools.codecoverage": {
96-
"version": "1.2.5",
105+
"version": "1.2.6",
97106
"depth": 1,
98107
"source": "registry",
99108
"dependencies": {
@@ -103,7 +112,7 @@
103112
"url": "https://packages.unity.com"
104113
},
105114
"com.unity.textmeshpro": {
106-
"version": "3.0.6",
115+
"version": "3.0.7",
107116
"depth": 0,
108117
"source": "registry",
109118
"dependencies": {
@@ -112,13 +121,13 @@
112121
"url": "https://packages.unity.com"
113122
},
114123
"com.unity.timeline": {
115-
"version": "1.6.5",
124+
"version": "1.7.6",
116125
"depth": 0,
117126
"source": "registry",
118127
"dependencies": {
128+
"com.unity.modules.audio": "1.0.0",
119129
"com.unity.modules.director": "1.0.0",
120130
"com.unity.modules.animation": "1.0.0",
121-
"com.unity.modules.audio": "1.0.0",
122131
"com.unity.modules.particlesystem": "1.0.0"
123132
},
124133
"url": "https://packages.unity.com"
@@ -133,7 +142,7 @@
133142
}
134143
},
135144
"com.unity.visualscripting": {
136-
"version": "1.9.1",
145+
"version": "1.9.4",
137146
"depth": 0,
138147
"source": "registry",
139148
"dependencies": {
@@ -274,17 +283,6 @@
274283
"version": "1.0.0",
275284
"depth": 0,
276285
"source": "builtin",
277-
"dependencies": {
278-
"com.unity.modules.ui": "1.0.0",
279-
"com.unity.modules.imgui": "1.0.0",
280-
"com.unity.modules.jsonserialize": "1.0.0",
281-
"com.unity.modules.uielementsnative": "1.0.0"
282-
}
283-
},
284-
"com.unity.modules.uielementsnative": {
285-
"version": "1.0.0",
286-
"depth": 1,
287-
"source": "builtin",
288286
"dependencies": {
289287
"com.unity.modules.ui": "1.0.0",
290288
"com.unity.modules.imgui": "1.0.0",

ParticleWebGLDemo/ParticleWebGLDemo/ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"m_Name": "Settings",
3-
"m_Path": "ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json",
42
"m_Dictionary": {
53
"m_DictionaryValues": []
64
}
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 2021.3.35f1
2-
m_EditorVersionWithRevision: 2021.3.35f1 (157b46ce122a)
1+
m_EditorVersion: 2022.3.49f1
2+
m_EditorVersionWithRevision: 2022.3.49f1 (4dae1bb8668d)

ParticleWebGLDemo/ParticleWebGLDemo/ProjectSettings/boot.config

Whitespace-only changes.

0 commit comments

Comments
 (0)