From 0b74d889d80ee30139bd72d390bf2558826b3a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Wed, 5 Nov 2025 19:35:34 +0800 Subject: [PATCH] 1 --- Editor/AlicizaX.Network.Editor.asmdef | 2 +- Runtime/AlicizaX.Network.Runtime.asmdef | 2 +- Runtime/Manager/NetworkModule.cs | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Editor/AlicizaX.Network.Editor.asmdef b/Editor/AlicizaX.Network.Editor.asmdef index f29b02b..c450557 100644 --- a/Editor/AlicizaX.Network.Editor.asmdef +++ b/Editor/AlicizaX.Network.Editor.asmdef @@ -2,7 +2,7 @@ "name": "AlicizaX.Network.Editor", "rootNamespace": "AlicizaX.Network.Editor", "references": [ - "GUID:acfef7cabed3b0a42b25edb1cd4fa259", + "GUID:fb064c8bf96bac94e90d2f39090daa94", "GUID:3d13889895c726f458c6fea2413408f3" ], "includePlatforms": [ diff --git a/Runtime/AlicizaX.Network.Runtime.asmdef b/Runtime/AlicizaX.Network.Runtime.asmdef index ec477cc..f45dc83 100644 --- a/Runtime/AlicizaX.Network.Runtime.asmdef +++ b/Runtime/AlicizaX.Network.Runtime.asmdef @@ -2,7 +2,7 @@ "name": "AlicizaX.Network.Runtime", "rootNamespace": "", "references": [ - "GUID:75b6f2078d190f14dbda4a5b747d709c", + "GUID:1619e00706139ce488ff80c0daeea8e7", "GUID:f51ebe6a0ceec4240a699833d6309b23" ], "includePlatforms": [], diff --git a/Runtime/Manager/NetworkModule.cs b/Runtime/Manager/NetworkModule.cs index 2cb0750..eaca8b2 100644 --- a/Runtime/Manager/NetworkModule.cs +++ b/Runtime/Manager/NetworkModule.cs @@ -10,7 +10,7 @@ namespace AlicizaX.Network.Runtime [UnityEngine.Scripting.Preserve] internal sealed class NetworkModule : INetworkModule { - private Scene _scene; + private Fantasy.Scene _scene; private Session _session; private int _heartInterval; @@ -18,6 +18,7 @@ namespace AlicizaX.Network.Runtime public EConnectState ConnectState => _connectState; private EConnectState _connectState; + void IModule.Dispose() { _scene?.Dispose(); @@ -40,7 +41,7 @@ namespace AlicizaX.Network.Runtime allAssemblies[allAssemblies.Length - 1] = typeof(NetworkModule).Assembly; await Fantasy.Platform.Unity.Entry.Initialize(allAssemblies); - _scene = await Scene.Create(SceneRuntimeMode.MainThread); + _scene = await Fantasy.Scene.Create(SceneRuntimeMode.MainThread); } public void Connect(string remoteAddress, NetworkProtocolType networkProtocolType, bool isHttps)