Compare commits

..

2 Commits

Author SHA1 Message Date
0b74d889d8 1 2025-11-05 19:35:34 +08:00
cc0804778c modify 2025-09-08 10:10:15 +08:00
3 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
"name": "AlicizaX.Network.Editor", "name": "AlicizaX.Network.Editor",
"rootNamespace": "AlicizaX.Network.Editor", "rootNamespace": "AlicizaX.Network.Editor",
"references": [ "references": [
"GUID:acfef7cabed3b0a42b25edb1cd4fa259", "GUID:fb064c8bf96bac94e90d2f39090daa94",
"GUID:3d13889895c726f458c6fea2413408f3" "GUID:3d13889895c726f458c6fea2413408f3"
], ],
"includePlatforms": [ "includePlatforms": [

View File

@ -2,8 +2,7 @@
"name": "AlicizaX.Network.Runtime", "name": "AlicizaX.Network.Runtime",
"rootNamespace": "", "rootNamespace": "",
"references": [ "references": [
"GUID:75b6f2078d190f14dbda4a5b747d709c", "GUID:1619e00706139ce488ff80c0daeea8e7",
"GUID:0b7224b83ba514121aa026f3857f820a",
"GUID:f51ebe6a0ceec4240a699833d6309b23" "GUID:f51ebe6a0ceec4240a699833d6309b23"
], ],
"includePlatforms": [], "includePlatforms": [],

View File

@ -10,7 +10,7 @@ namespace AlicizaX.Network.Runtime
[UnityEngine.Scripting.Preserve] [UnityEngine.Scripting.Preserve]
internal sealed class NetworkModule : INetworkModule internal sealed class NetworkModule : INetworkModule
{ {
private Scene _scene; private Fantasy.Scene _scene;
private Session _session; private Session _session;
private int _heartInterval; private int _heartInterval;
@ -18,6 +18,7 @@ namespace AlicizaX.Network.Runtime
public EConnectState ConnectState => _connectState; public EConnectState ConnectState => _connectState;
private EConnectState _connectState; private EConnectState _connectState;
void IModule.Dispose() void IModule.Dispose()
{ {
_scene?.Dispose(); _scene?.Dispose();
@ -40,7 +41,7 @@ namespace AlicizaX.Network.Runtime
allAssemblies[allAssemblies.Length - 1] = typeof(NetworkModule).Assembly; allAssemblies[allAssemblies.Length - 1] = typeof(NetworkModule).Assembly;
await Fantasy.Platform.Unity.Entry.Initialize(allAssemblies); 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) public void Connect(string remoteAddress, NetworkProtocolType networkProtocolType, bool isHttps)