internal void Spawn(Gate gate) { SpawnList spawnList = SpawnLists[gate.SpawnListIndex]; List <ObjectType> objectsToSpawn = spawnList.Spawn(gate); StartCoroutine(SpawnObjectList(gate, objectsToSpawn)); }