using System.Collections; using System.Collections.Generic; using UnityEngine; public class CoinSound : MonoBehaviour { private void OnEnable() { AudioSource source = GetComponent(); source.volume = SettingsManager.GetFloat("SoundsVolume", 0.5f); source.Play(); } }