if click on gameobject = start script

Hi,
I’ve created a music player script with the function OnGUI, i would like that if i click on a specific game object, the music player appears/disappears.
How can i do this? Thank you.

using UnityEngine;
using System.Collections;

public class test : MonoBehaviour {
	public LayerMask Layers;
	public GameObject HitObject;
	public AudioClip Sound;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if (Input.GetMouseButton(0)){
		Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
		RaycastHit hit;
		//if (Physics.Raycast(ray, out hit, 100, layermask))  // Put a layermask on objects you want to click
		if (Physics.Raycast(ray, out hit, 100))
			Debug.DrawLine(ray.origin, hit.point);
		    HitObject = hit.transform.gameObject; // store the hit object 
		   hit.transform.gameObject.GetComponent<YourScriptNameHere>().enabled = false; // Enable a script on the gameobject
		if (hit.transform.name.Equals ("GAMEOBJECT NAME")){ // if the gameobject name = name then 
		
		}
		}
	}
}