mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Tests: reuse CreateNetworked
This commit is contained in:
parent
e36a9a16fb
commit
f0441738d0
@ -22,7 +22,7 @@ public override IEnumerator UnitySetUp()
|
||||
[UnityTest]
|
||||
public IEnumerator DestroyPlayerForConnectionTest()
|
||||
{
|
||||
GameObject player = new GameObject("testPlayer", typeof(NetworkIdentity));
|
||||
CreateNetworked(out GameObject player, out _);
|
||||
NetworkConnectionToClient conn = new NetworkConnectionToClient(1);
|
||||
|
||||
NetworkServer.AddPlayerForConnection(conn, player);
|
||||
|
Loading…
Reference in New Issue
Block a user