A Button takes a Sprite to display and the position to display it at. The sprite's UV coordinates should be treated as sections for the button's animation. Add animation support to Sprite as well.
A ToggleButton inherits Button and should have toggle() that switches its value.
A Button takes a Sprite to display and the position to display it at. The sprite's UV coordinates should be treated as sections for the button's animation. Add animation support to Sprite as well.
A ToggleButton inherits Button and should have toggle() that switches its value.