Summary
Well done on reaching the end of this chapter! It was a very long chapter, with lots of content and new features, and now we have finally added the last features to our RTS game. We will soon have our Dragoncraft game completed and ready to play.
In this chapter, we learned how to implement a drag-and-drop feature that can be used to move GameObjects on the map, and we applied it to buildings and the Defense Tower. We also learned how to create a customizable and flexible store to list resource upgrades, which also add new buildings on the map as well as increasing the amount of each resource that is generated.
We also implemented the unit upgrade store, reusing everything we created for the Resource Store, and adding specific scripts to upgrade the unit levels, based on the unit type.
Besides the craft and upgrade buildings to generate more resources over time, and the increase in the upgrade level of the training units, we also added a new unit type that works both...