using UnityEngine; using System.Collections; public class OnMouseDownExample : MonoBehaviour { void OnMouseDown() { print (name); } }