mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
58cae69647
commit
46d49381b0
@ -470,7 +470,7 @@ public void CommandMessageCallsCommand()
|
||||
connection.isAuthenticated = true;
|
||||
|
||||
// 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;
|
||||
// for authority check
|
||||
identity.connectionToClient = connection;
|
||||
@ -555,7 +555,7 @@ public void CommandMessageCallsCommand()
|
||||
public void ActivateHostSceneCallsOnStartClient()
|
||||
{
|
||||
// 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;
|
||||
NetworkIdentity.spawned[identity.netId] = identity;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user