in the MENU of my experience I need, when I click on a button (which is actually a circle image), this moves smoothely to the LEFT and 2 Sub-buttons appear.
When I click again on the same button the 2 sub-buttons must Hide and this one moves at the initial positiion.
To do this I have created:
- counter (each time I click +1)
- global variable binded to the counter with the Script INPUT%2==0 do this else do that…
on the click I control if the result of the %2 is 0 or 1 so I move from one direction or to the other one.
Is there any better and simpler way to do this?