mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
ClientSceneTestsBase: remove tracking
This commit is contained in:
parent
9e73f074c9
commit
fd2288e541
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user