This commit is contained in:
vis2k 2021-06-15 16:46:54 +08:00
parent 58cae69647
commit 46d49381b0

View File

@ -470,7 +470,7 @@ public void CommandMessageCallsCommand()
connection.isAuthenticated = true; connection.isAuthenticated = true;
// add an identity with two networkbehaviour components // add an identity with two networkbehaviour components
CreateNetworked(out GameObject go, out NetworkIdentity identity, out CommandTestNetworkBehaviour comp0, out CommandTestNetworkBehaviour comp1); CreateNetworked(out GameObject _, out NetworkIdentity identity, out CommandTestNetworkBehaviour comp0, out CommandTestNetworkBehaviour comp1);
identity.netId = 42; identity.netId = 42;
// for authority check // for authority check
identity.connectionToClient = connection; identity.connectionToClient = connection;
@ -555,7 +555,7 @@ public void CommandMessageCallsCommand()
public void ActivateHostSceneCallsOnStartClient() public void ActivateHostSceneCallsOnStartClient()
{ {
// add an identity with a networkbehaviour to .spawned // add an identity with a networkbehaviour to .spawned
CreateNetworked(out GameObject go, out NetworkIdentity identity, out OnStartClientTestNetworkBehaviour comp); CreateNetworked(out GameObject _, out NetworkIdentity identity, out OnStartClientTestNetworkBehaviour comp);
identity.netId = 42; identity.netId = 42;
NetworkIdentity.spawned[identity.netId] = identity; NetworkIdentity.spawned[identity.netId] = identity;