public GameObject[] GamePrefab; //先定义好你要生成的物体GameObject go = Instantiate(GamePrefab[Random.Range(0,GamePrefab.length)], Vector3.zero, Quaternion.identity) as GameObject;//这个就是从你定义的几个物体当中随机生成物体了