Unity Select GameObjects With Mouse In 2D

For now just pasting a script here. Planning to clean it up and make more user friendly. If the code looks like gibberish(probably is), at least look at the links below.

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

public class ShootFromCrossHairs2D : MonoBehaviour {

	public LayerMask layerMask;

	// Use this for initialization
	void Start () {
		// Ways to setup LayerMask
		// shootableLayer = LayerMask.GetMask("Shootable");
		// layerMask = 1 << LayerMask.NameToLayer("Shootable"); // only check for collisions with layerX

	}

	// Update is called once per frame
	void Update () {
		// if left mouse clicked, check if we hit anything
		if(Input.GetMouseButtonUp(0)){
			ClickSelect();			
		}
	}

	//This method returns the game object that was clicked using Raycast 2D
	 // TODO move into mouse or its own class
    void ClickSelect()
     {
		Debug.Log("Clicked");

		Vector2 ray = Camera.main.ScreenToWorldPoint(Input.mousePosition);
		// NOTE: make sure layermask is not in distance parameter spot
		RaycastHit2D hit = Physics2D.Raycast(ray, Vector2.zero, Mathf.Infinity, layerMask);

    if (hit)
    {
		// see what we hit
        Debug.Log("We hit " + hit.collider.name);

		// was it an enemy?
		if(hit.collider.CompareTag("Enemy")){
			Debug.Log("Hit the enemy");

/*
			// Try and find an EnemyHealth script on the gameobject hit.
            EnemyHealth enemyHealth = shootHit.collider.GetComponent <EnemyHealth> ();

            // If the EnemyHealth component exist...
            if(enemyHealth != null)
            {
                // ... the enemy should take damage.
                enemyHealth.TakeDamage (damagePerShot, shootHit.point);
            }
			*/
		}

    }

	 }
}