ClientSceneTestsBase: remove tracking

This commit is contained in:
vis2k 2021-05-20 15:41:15 +08:00
parent 9e73f074c9
commit fd2288e541

View File

@ -26,8 +26,6 @@ public abstract class ClientSceneTestsBase : MirrorTest
protected GameObject invalidPrefab;
protected Guid validPrefabGuid;
protected Guid anotherGuid;
protected readonly List<GameObject> _createdObjects = new List<GameObject>();
protected Dictionary<Guid, GameObject> prefabs => NetworkClient.prefabs;
protected Dictionary<Guid, SpawnHandlerDelegate> spawnHandlers => NetworkClient.spawnHandlers;
@ -58,14 +56,6 @@ public override void TearDown()
// reset asset id in case they are changed by tests
validPrefabNetworkIdentity.assetId = validPrefabGuid;
foreach (GameObject item in _createdObjects)
{
if (item != null)
{
GameObject.DestroyImmediate(item);
}
}
_createdObjects.Clear();
base.TearDown();
}