This commit is contained in:
vis2k 2021-08-11 14:15:24 +08:00
parent 52a560ca6d
commit 2fd87a49ec

View File

@ -64,10 +64,8 @@ public IEnumerator Shutdown_DestroysAllSpawnedPrefabs()
NetworkIdentity identity2 = spawnPrefab(prefab);
// test
// shutdown, wait 1 frame for unity to destroy objects
NetworkServer.Shutdown();
// wait 1 frame for unity to destroy objects
yield return null;
// check that objects were destroyed