using System.Collections.Generic;
using UnityEngine;
public class Example : MonoBehaviour
{
public List<GameObject> prefabs = new List<GameObject>();
private void Update()
{
Spawn();
}
private void Spawn()
{
var prefab = prefabs[Random.Range(0, prefabs.Count)];
Instantiate(prefab);
}
}