unclickable objects

hi
im new to unity. how could i make an object that become unclickable after i dragged it from an array? And you can only right click to delete it :(??

thank

How about booleans?

var canClick: boolean = true;

if (canClick){

//Run Drag function
canClick = false;
}