Writing unit tests
We have developed a lot of features and created configurations for units and enemies, while retaining the flexibility to expand and add many more characters to our RTS game. However, with such flexibility comes the difficult task of testing all the configurations to make sure the units and enemies are balanced in strength. We could continue testing the units and enemies in battle, adding them using the Debug menu while running the game in the Unity Editor, but it would take a lot of time and effort to test multiple combinations.
So far, we have added the Warrior and Mage units, and the Orc, Golem, and Dragon enemies. Later, in Chapter 14, Crafting Buildings and Defense Towers, we are going to add a feature to train the units and level them up, making them stronger. After adding the unit level-up functionality, we will have to make sure that when the Warrior and Mage units each level up, they become stronger but not overpowered, as otherwise, we will make the game...