Techniques we learnt in this chapter
If you have reached this point of the chapter and book, it means that your game is completed. Let's recap what we have learnt in terms of techniques, instead of topics:
Inheritance: We have implemented our trading system by using inheritance, and this gave us the possibility to explore it. In particular, we learnt a bit more about:
Abstract classes and methods: So that their full implementation is left to child classes
Protected variables: Which can be seen by some scripts but not all of them
UI handlers: Can be automatically linked to have an interaction with the UI without settings events in the Inspector
Interaction between mouse and camera: To implement the placing script, we needed to transform the mouse coordinates into game coordinates.
Enabling/disabling scripts: To implement functionalities, always in the placing script, we learnt how it is possible to disable and enable scripts to trigger functionalities when they are needed.
Storing information:...