using UnityEngine;
using System.Collections;

public static class AudioManager
{
	public static bool mute = false;
	
	public static AudioClip jump 		= (AudioClip)Resources.Load("Audio/Jump");
	public static AudioClip tongueIn 	= (AudioClip)Resources.Load("Audio/TongueIn");
	public static AudioClip tongueOut 	= (AudioClip)Resources.Load("Audio/TongueOut");
	public static AudioClip repair 		= (AudioClip)Resources.Load("Audio/Repair");
	public static AudioClip doubleJump 	= (AudioClip)Resources.Load("Audio/DoubleJump");
	public static AudioClip buttonYes 	= (AudioClip)Resources.Load("Audio/ButtonYes");
	public static AudioClip getFly 		= (AudioClip)Resources.Load("Audio/GetFly");
	public static AudioClip buttonNo 	= (AudioClip)Resources.Load("Audio/ButtonNo");
	public static AudioClip win 		= (AudioClip)Resources.Load("Audio/Win");
	public static AudioClip lose 		= (AudioClip)Resources.Load("Audio/Lose");
	public static AudioClip lily 		= (AudioClip)Resources.Load("Audio/LilyFall");
	public static AudioClip powerUp 	= (AudioClip)Resources.Load("Audio/PowerUp");
	public static AudioClip jumpInWater = (AudioClip)Resources.Load("Audio/JumpInWater");
	public static AudioClip getStar1 	= (AudioClip)Resources.Load("Audio/Star1");
	public static AudioClip getStar2 	= (AudioClip)Resources.Load("Audio/Star2");
	public static AudioClip getStar3 	= (AudioClip)Resources.Load("Audio/Star3");
	public static AudioClip buttonCant 	= (AudioClip)Resources.Load("Audio/ButtonCant");
	
	public static void PlaySound(AudioClip sound)
	{
		if (!mute)
			AudioSource.PlayClipAtPoint(sound, Camera.main.transform.position);
	}
	
	public static void PlaySound(AudioClip sound, float volume)
	{
		if (!mute)
			AudioSource.PlayClipAtPoint(sound, Camera.main.transform.position, volume);
	}
	
}
