Sound.cs (275B)
1 using UnityEngine; 2 3 [System.Serializable] 4 public class Sound 5 { 6 public string name; 7 public AudioClip clip; 8 [Range(0f, 1f)] public float volume; 9 [Range(.1f, 3f)] public float pitch; 10 public bool loop; 11 12 [HideInInspector] public AudioSource source; 13 }