What kind of variable would be used in a situation that uses the click and drag feature?

I was watching “Making an ‘Angry Birds’ style game - part 1” and at 40:42, I tried to create a very simple trial run to just click and drag an object based on the code provided in the video.

However I had 3 errors all with the same message:

Assets/dragScript.cs(15,21): error CS0103: The name `clickedOn’ does not exist in the current context

Except only the “row” number was different since I used the clickedOn 3 times, I think that is supposed to be a variable but not sure what kind of variable it is.

My main goal is to just click and drag an object.

You want to use a bool. As in

bool clickedOn;

at the top of your script, just below the class declaration