diff options
Diffstat (limited to 'GunSFX.cs')
-rw-r--r-- | GunSFX.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/GunSFX.cs b/GunSFX.cs new file mode 100644 index 0000000..a00422c --- /dev/null +++ b/GunSFX.cs @@ -0,0 +1,23 @@ +using UnityEngine; + +public class GunSFX : MonoBehaviour +{ + public AudioClip[] shootClips; + + private AudioSource au; + + private void Start() + { + au = GetComponent<AudioSource>(); + au.mute = true; + } + + private void Update() + { + } + + public void PlayShootSound() + { + //au.PlayOneShot(shootClips[Random.Range(0, shootClips.Length)]); + } +} |