summaryrefslogtreecommitdiff
path: root/GunSFX.cs
blob: a00422c22385e4b62b59c14e0074368c05cc7f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)]);
	}
}