Building and Selling
摘要
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.