public void SetUpLocalDummyClient() { myClient = ClientScene.ConnectLocalServer(); ClientScene.ClearSpawners(); foreach (GameObject spawnable in spawns) { ClientScene.RegisterPrefab(spawnable); } }
public void ClearSpawners_RemovesAllUnspawnHandlersFromDictionary() { unspawnHandlers.Add(Guid.NewGuid(), null); unspawnHandlers.Add(Guid.NewGuid(), null); unspawnHandlers.Add(Guid.NewGuid(), null); ClientScene.ClearSpawners(); Assert.IsEmpty(unspawnHandlers); }
public void ClearSpawners_RemovesAllPrefabsFromDictionary() { prefabs.Add(Guid.NewGuid(), null); prefabs.Add(Guid.NewGuid(), null); prefabs.Add(Guid.NewGuid(), null); ClientScene.ClearSpawners(); Assert.IsEmpty(prefabs); }
public void ClearSpawners_ClearsAllDictionary() { prefabs.Add(Guid.NewGuid(), null); prefabs.Add(Guid.NewGuid(), null); prefabs.Add(Guid.NewGuid(), null); spawnHandlers.Add(Guid.NewGuid(), null); spawnHandlers.Add(Guid.NewGuid(), null); spawnHandlers.Add(Guid.NewGuid(), null); unspawnHandlers.Add(Guid.NewGuid(), null); unspawnHandlers.Add(Guid.NewGuid(), null); unspawnHandlers.Add(Guid.NewGuid(), null); ClientScene.ClearSpawners(); Assert.IsEmpty(prefabs); Assert.IsEmpty(spawnHandlers); Assert.IsEmpty(unspawnHandlers); }
public override void OnEnter() { base.OnEnter(); ClientScene.ClearSpawners(); Finish(); }