Changing array values based on drag and drop

Hi
I’m making a game where you have to move numbers in different slots and to manage them i’m using an array, for example slot 1 is element 0, slot 2 is element 1 and so on and the value of the element is the number that is inside the slot

I have set up a drag and drop following code monkey’s video and i can’t find a way to change the values based on that.
Any advice? (I am pretty new to unity so try to explain as easy as possible, thanks)

The thing you are dragging and dropping should have a script with a int value, then when you drop it, you set the value of the array element to the value on the script of the object you dragged.