With our UI in place, it’s time to hook it up with its functionality, giving our player the ability to build and sell towers. This will teach us how to handle events for our UI to respond to clicks on our buttons. We’ll also be learning how to use a fundamental new type, the Dictionary, which will be a lifesaver for storing and retrieving towers we’ve built.
Events
UI elements that have some form of interaction with the user will have event fields exposed in the Inspector, such as a button having an “OnClick” ...