20 lines
360 B
C#
20 lines
360 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class MonumentPreviewSound : MonoBehaviour
|
||
|
{
|
||
|
private AudioSource _source;
|
||
|
|
||
|
private void Awake()
|
||
|
{
|
||
|
_source = GetComponent<AudioSource>();
|
||
|
}
|
||
|
|
||
|
public void PlaySound(AudioClip clip)
|
||
|
{
|
||
|
_source.clip = clip;
|
||
|
_source.Play();
|
||
|
}
|
||
|
}
|