mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fixed NetworkIdentityTest
- removed unused var
This commit is contained in:
parent
b85557b8ea
commit
ca94fca82f
@ -1262,7 +1262,6 @@ public void Reset()
|
||||
identity.isClient = true;
|
||||
// creates .observers and generates a netId
|
||||
identity.OnStartServer();
|
||||
uint netId = identity.netId;
|
||||
identity.connectionToClient = new NetworkConnectionToClient(1);
|
||||
identity.connectionToServer = new NetworkConnectionToServer();
|
||||
identity.observers[43] = new NetworkConnectionToClient(2);
|
||||
|
@ -1056,7 +1056,7 @@ public void TestNetworkBehaviour()
|
||||
NetworkIdentity identity = gameObject.AddComponent<NetworkIdentity>();
|
||||
RpcNetworkIdentityBehaviour behaviour = gameObject.AddComponent<RpcNetworkIdentityBehaviour>();
|
||||
|
||||
const ushort netId = 100;
|
||||
const uint netId = 100;
|
||||
identity.netId = netId;
|
||||
|
||||
NetworkIdentity.spawned[netId] = identity;
|
||||
|
Loading…
Reference in New Issue
Block a user