13 lines
245 B
C#
13 lines
245 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CollisionSound : MonoBehaviour
|
|
{
|
|
public List<string> soundNames = new List<string>();
|
|
|
|
public string GetSound()
|
|
{
|
|
return soundNames[Random.Range(0, soundNames.Count)];
|
|
}
|
|
}
|