using UnityEngine;
using System.Collections;

public enum Sounds
{
	Blast = 0,
	Fire,
	Die1,
	Die2,
	Crazy,
	Pickup,
	Create,
	Yes
}

public class AudioManager : MonoBehaviour
{

	public static AudioManager instance;
	public AudioClip[] clips;
	// Use this for initialization
	
	void Awake ()
	{
		instance = this;
	}
	
	public void Play (Sounds idx, Transform obj)
	{
		if (obj != null)
			AudioSource.PlayClipAtPoint (clips [(int)idx], obj.position);
	}
}
