Skip to content

Commit

Permalink
update webgl
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhichao Link committed Oct 10, 2024
1 parent 291f7bb commit 05bf1d6
Show file tree
Hide file tree
Showing 10 changed files with 1,269 additions and 233 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async static Task<string> Request(string path, string postData)
ParticleUnityRpc.clientKey);
Debug.Log($"Request params ${postData}");
byte[] postDataJson = System.Text.Encoding.UTF8.GetBytes(postData);
using (var www = UnityWebRequest.Post(url + path, UnityWebRequest.kHttpVerbPOST))
using (var www = UnityWebRequest.PostWwwForm(url + path, UnityWebRequest.kHttpVerbPOST))
{
www.chunkedTransfer = false;
www.uploadHandler = new UploadHandlerRaw(postDataJson);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mergeInto(LibraryManager.library, {
const config = UTF8ToString(options);
console.log('InitParticleAuth', config);
const script = document.createElement('script');
script.src = 'https://static.particle.network/sdks/web/auth/1.3.1/auth.min.js';
script.src = 'https://static.particle.network/sdks/web/auth/1.3.3/auth.min.js';
script.onload = () => {
new particleAuth.ParticleNetwork(JSON.parse(config));
};
Expand Down
4 changes: 2 additions & 2 deletions ParticleWebGLDemo/ParticleWebGLDemo/Assets/Scripts/Demo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public void Init()
defaultWalletEntryPosition = new WalletEntryPosition { x = 0.0f, y = 0.0f },
supportChains = new List<ChainInfo>
{
ChainInfo.SolanaDevnet
ChainInfo.Sei
}
};
var config = new InitConfig(projectId, clientKey, appId, ChainInfo.SolanaDevnet, securityAccount,
var config = new InitConfig(projectId, clientKey, appId, ChainInfo.Sei, securityAccount,
wallet);

ParticleAuth.Instance.Init(config);
Expand Down
13 changes: 7 additions & 6 deletions ParticleWebGLDemo/ParticleWebGLDemo/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"dependencies": {
"com.unity.collab-proxy": "2.2.0",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.ai.navigation": "1.1.5",
"com.unity.collab-proxy": "2.5.1",
"com.unity.feature.development": "1.0.1",
"com.unity.ide.rider": "3.0.27",
"com.unity.ide.rider": "3.0.31",
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.ide.vscode": "1.2.5",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.test-framework": "1.1.33",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.6.5",
"com.unity.textmeshpro": "3.0.7",
"com.unity.timeline": "1.7.6",
"com.unity.ugui": "1.0.0",
"com.unity.visualscripting": "1.9.1",
"com.unity.visualscripting": "1.9.4",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
Expand Down
40 changes: 19 additions & 21 deletions ParticleWebGLDemo/ParticleWebGLDemo/Packages/packages-lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"dependencies": {
"com.unity.ai.navigation": {
"version": "1.1.5",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.modules.ai": "1.0.0"
},
"url": "https://packages.unity.com"
},
"com.unity.collab-proxy": {
"version": "2.2.0",
"version": "2.5.1",
"depth": 0,
"source": "registry",
"dependencies": {},
Expand All @@ -27,16 +36,16 @@
"source": "builtin",
"dependencies": {
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.ide.rider": "3.0.27",
"com.unity.ide.rider": "3.0.31",
"com.unity.ide.vscode": "1.2.5",
"com.unity.editorcoroutines": "1.0.0",
"com.unity.performance.profile-analyzer": "1.2.2",
"com.unity.test-framework": "1.1.33",
"com.unity.testtools.codecoverage": "1.2.5"
"com.unity.testtools.codecoverage": "1.2.6"
}
},
"com.unity.ide.rider": {
"version": "3.0.27",
"version": "3.0.31",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -75,7 +84,7 @@
"url": "https://packages.unity.com"
},
"com.unity.settings-manager": {
"version": "1.0.3",
"version": "2.0.1",
"depth": 2,
"source": "registry",
"dependencies": {},
Expand All @@ -93,7 +102,7 @@
"url": "https://packages.unity.com"
},
"com.unity.testtools.codecoverage": {
"version": "1.2.5",
"version": "1.2.6",
"depth": 1,
"source": "registry",
"dependencies": {
Expand All @@ -103,7 +112,7 @@
"url": "https://packages.unity.com"
},
"com.unity.textmeshpro": {
"version": "3.0.6",
"version": "3.0.7",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -112,13 +121,13 @@
"url": "https://packages.unity.com"
},
"com.unity.timeline": {
"version": "1.6.5",
"version": "1.7.6",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0"
},
"url": "https://packages.unity.com"
Expand All @@ -133,7 +142,7 @@
}
},
"com.unity.visualscripting": {
"version": "1.9.1",
"version": "1.9.4",
"depth": 0,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -274,17 +283,6 @@
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.uielementsnative": "1.0.0"
}
},
"com.unity.modules.uielementsnative": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"m_Name": "Settings",
"m_Path": "ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json",
"m_Dictionary": {
"m_DictionaryValues": []
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2021.3.35f1
m_EditorVersionWithRevision: 2021.3.35f1 (157b46ce122a)
m_EditorVersion: 2022.3.49f1
m_EditorVersionWithRevision: 2022.3.49f1 (4dae1bb8668d)
Empty file.
Loading

0 comments on commit 05bf1d6

Please sign in to comment.