cara memutar suara acak di posisi yang Anda inginkan dalam persatuan

using UnityEngine;

public AudioSource[] source; 

private void Start()
{
	AudioSource.PlayClipAtPoint(source[Random.Range(0, source.Length)], position);
}
MuffinCat