fixed NetworkIdentityTest

- removed unused var
This commit is contained in:
MrGadget1024 2021-01-07 09:22:24 -05:00
parent b85557b8ea
commit ca94fca82f
2 changed files with 1 additions and 2 deletions

View File

@ -1262,7 +1262,6 @@ public void Reset()
identity.isClient = true; identity.isClient = true;
// creates .observers and generates a netId // creates .observers and generates a netId
identity.OnStartServer(); identity.OnStartServer();
uint netId = identity.netId;
identity.connectionToClient = new NetworkConnectionToClient(1); identity.connectionToClient = new NetworkConnectionToClient(1);
identity.connectionToServer = new NetworkConnectionToServer(); identity.connectionToServer = new NetworkConnectionToServer();
identity.observers[43] = new NetworkConnectionToClient(2); identity.observers[43] = new NetworkConnectionToClient(2);

View File

@ -1056,7 +1056,7 @@ public void TestNetworkBehaviour()
NetworkIdentity identity = gameObject.AddComponent<NetworkIdentity>(); NetworkIdentity identity = gameObject.AddComponent<NetworkIdentity>();
RpcNetworkIdentityBehaviour behaviour = gameObject.AddComponent<RpcNetworkIdentityBehaviour>(); RpcNetworkIdentityBehaviour behaviour = gameObject.AddComponent<RpcNetworkIdentityBehaviour>();
const ushort netId = 100; const uint netId = 100;
identity.netId = netId; identity.netId = netId;
NetworkIdentity.spawned[netId] = identity; NetworkIdentity.spawned[netId] = identity;