14 lines
323 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CoinSound : MonoBehaviour
{
private void OnEnable()
{
AudioSource source = GetComponent<AudioSource>();
source.volume = SettingsManager.GetFloat(SettingKey.SOUNDS_VOLUME);
source.Play();
}
}