using System.Collections.Generic; using UnityEngine; public class CollisionSound : MonoBehaviour { public List soundNames = new List(); public string GetSound() { return soundNames[Random.Range(0, soundNames.Count)]; } }