mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Tests: SpawnObject reuses CreateNetworked
This commit is contained in:
parent
c8193c2100
commit
63023c1f27
@ -15,14 +15,12 @@ public override void SetUp()
|
||||
NetworkClient.connection = new FakeNetworkConnection();
|
||||
}
|
||||
|
||||
// TODO reuse MirrorTest.CreateNetworkedAndSpawn?
|
||||
NetworkIdentity SpawnObject(bool localPlayer)
|
||||
{
|
||||
const uint netId = 1000;
|
||||
|
||||
GameObject go = new GameObject();
|
||||
_createdObjects.Add(go);
|
||||
|
||||
NetworkIdentity identity = go.AddComponent<NetworkIdentity>();
|
||||
CreateNetworked(out GameObject go, out NetworkIdentity identity);
|
||||
|
||||
SpawnMessage msg = new SpawnMessage
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user