If I'm not mistaken, just make sure there's a Collider on the object, and treat it like any other object. While mouse down, cast a ray, and if the ray is hitting the object (which means clicking or finger on it), update a variable such as "beingTouched = true", and in the update(), " if (beingTouched){ }"