So each turret has one button.
Give both an instance variable 'id'. Give them the same value, as some kind of identification.
Turret 1 & his button gets an 'id' with value 1.
Turret 2 & his button gets an 'id' with value 2.
On button clicked, select the turret with the same id, do your stuff.
But it is much much easyer if you use containers. Bring turret & button in a container.
Then, on creating a turret it also creates a button.
From now on, if the button is selected, also right turret is selected.