using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MouseManager : MonoBehaviour {

	public AudioClip clickSound;

	private Camera mainCamera;

	// Use this for initialization
	void Start () {
		mainCamera = Camera.main;
	}
	
	// Update is called once per frame
	void Update () {
		if(Input.GetMouseButtonDown(0)) {
			AudioSource.PlayClipAtPoint(clickSound, mainCamera.ScreenToWorldPoint(Input.mousePosition));
		}
	}
}
