Store temp var / invert var

Hi, i have a problem, i don’t know how to invert a var, the first will be modified and the second will copy the first.

//Icon move
if(Event.current.type == EventType.MouseUp && dragging){
		skill[over_Number].text = skill[first_Number].text; // ----> The mouseOver text become the firstclic text
		skill[first_Number].text = skill[over_Number].text; // -----> The firstclic text text become the mouseOver
		dragging = false;
}

I have no idea how to do this, if you can help me, thanks :slight_smile:

Something like this:

string temp = skill[over_Number].text;
skill[over_Number].text = skill[first_Number].text;
skill[first_Number].text = temp ;