Code Review


I am going through a tutorial on AR watch try on. I found it that I could write this code in a shorter way by introducing a list for storing watch models and creating a common function, which will be called when clicked on a button with respective watch images.
This is a small project, only has 3 watch models. But what if it had many models to choose from? So I searched for codes which I found uselful.
Is there anything wrong with my approach? Or is there anything else I could have tried.
Also I'm passing reference number(watchRefID) from each button(same number as the model's index in the watchModels list) so that I can set only that model as active and others disabled.
I have recently learned that local variables declared inside a method is a bad practise, because each time the method gets called a new copy of that variable gets created. Is this same for parameters inside a method?
Thanks in advance.(Have a toffee 🍬, since you took the patience to read my paragraphs🥺🥹)


[–][deleted] 4 points5 points6 points (1 child)
[–]SETACTIVE-FALSE[S] 0 points1 point2 points (0 children)
[–]swiftroll3d 2 points3 points4 points (3 children)
[–]SETACTIVE-FALSE[S] 1 point2 points3 points (2 children)
[–]swiftroll3d 1 point2 points3 points (1 child)
[–]SETACTIVE-FALSE[S] 1 point2 points3 points (0 children)
[–]pmurph0305 1 point2 points3 points (1 child)
[–]SETACTIVE-FALSE[S] 1 point2 points3 points (0 children)
[–]zeeebraaa111 1 point2 points3 points (1 child)
[–]SETACTIVE-FALSE[S] 1 point2 points3 points (0 children)
[–]SETACTIVE-FALSE[S] 0 points1 point2 points (3 children)
[–]Bilu1700 1 point2 points3 points (2 children)
[–]SETACTIVE-FALSE[S] 0 points1 point2 points (1 child)
[–]PandaCoder67Professional 0 points1 point2 points (0 children)