Fix: Resolve an exception when restarting Netick after Network.ShutdownImmediately

This commit is contained in:
Karrar
2025-08-18 19:31:41 +03:00
parent 0843f02c15
commit 226a4f2609
11 changed files with 10 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

8
Samples.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 21ada7aab366ed44cb7c25faaaf20dcf
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -14,7 +14,7 @@ namespace Netick.Samples.Bomberman
public override void NetworkAwake()
{
Sandbox.Events.OnInputRead += OnInput;
Sandbox.Events.OnInput += OnInput;
Sandbox.Events.OnConnectRequest += OnConnectRequest;
Sandbox.Events.OnPlayerJoined += OnPlayerJoined;
Sandbox.Events.OnPlayerLeft += OnPlayerLeft;

View File

@@ -1,6 +1,6 @@
{
"name": "com.karrar.netick",
"version": "0.14.61",
"version": "0.14.62",
"displayName": "Netick",
"description": "A networking solution for Unity",
"unity": "2021.3",