using System.Collections; using System.Collections.Generic; using UnityEngine; public class MonumentPreviewSound : MonoBehaviour { private AudioSource _source; private void Awake() { _source = GetComponent(); } public void PlaySound(AudioClip clip) { _source.clip = clip; _source.Play(); } }