my paln is while moving my gameobject through y direction in 2d i want to click on a particular object and (touch screen) and which will disapper
var red : GameObject;
private var speed : Vector2 = Vector2 (0,0.5);
function FixedUpdate () {
rigidbody2D.MovePosition(rigidbody2D.position + speed * Time.deltaTime);
if (Input.touchCount > 0)
red = gameObject.FindWithTag(“player”);
Destroy(gameObject);
}