Handle Click Events Pro
Try adding two buttons that increment and decrement the glass count by 0.5 respectively. These buttons can be smaller in size and located below the existing buttons. You can improve the UI by making the “-1” button visible only if the glass count is greater than zero.
Add click listeners to the buttons and modify the glass count accordingly. Redraw the Tile after each click and display the updated data.