This commit is contained in:
vis2k 2021-08-07 13:01:42 +08:00
parent a4be521a87
commit 765de95607

View File

@ -10,10 +10,8 @@ public void RemovesAllPrefabsFromDictionary()
{
NetworkClient.prefabs.Add(Guid.NewGuid(), null);
NetworkClient.prefabs.Add(Guid.NewGuid(), null);
NetworkClient.prefabs.Add(Guid.NewGuid(), null);
NetworkClient.ClearSpawners();
Assert.IsEmpty(NetworkClient.prefabs);
}
@ -22,10 +20,8 @@ public void RemovesAllSpawnHandlersFromDictionary()
{
NetworkClient.spawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.spawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.spawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.ClearSpawners();
Assert.IsEmpty(NetworkClient.spawnHandlers);
}
@ -34,7 +30,6 @@ public void RemovesAllUnspawnHandlersFromDictionary()
{
NetworkClient.unspawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.unspawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.unspawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.ClearSpawners();
@ -46,13 +41,10 @@ public void ClearsAllDictionary()
{
NetworkClient.prefabs.Add(Guid.NewGuid(), null);
NetworkClient.prefabs.Add(Guid.NewGuid(), null);
NetworkClient.prefabs.Add(Guid.NewGuid(), null);
NetworkClient.spawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.spawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.spawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.unspawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.unspawnHandlers.Add(Guid.NewGuid(), null);
NetworkClient.unspawnHandlers.Add(Guid.NewGuid(), null);