summaryrefslogtreecommitdiff
path: root/SFXPlayer.cs
blob: ec85233a6043fac36ad6a12a3f414cd03865b719 (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 System.Collections.Generic;
using UnityEngine;

public class SFXPlayer : MonoBehaviour
{
	public List<AudioClip> metal;

	public List<AudioClip> other;

	internal void Play(RaycastHit hit)
	{
		AudioSource component = GetComponent<AudioSource>();
        component.mute = true;
        //List<AudioClip> list = new List<AudioClip>();
        //list = ((!hit.rigidbody) ? other : metal);
        //if (!hit.rigidbody)
        //{
        //    component.volume *= 0.5f;
        //}
        //component.clip = list[Random.Range(0, list.Count)];
        //component.Play();
    }
}