Before we can test our code properly, let's reflect on what we have done. While we have made our game framework more flexible and extensible, we have also broken some assumptions from before that need repairing as discussed in the following points:
MissionManagerclass has been renamed to
Game. This means that all scripts that used to do a
GameObject.Find("MissionManager")need to be updated to
MAINscene and some into the
LEVEL1scene. This means that objects that have a reference to an object that is now in another scene will be broken. To repair these, we need to modify the code for the object in the scene. See
SetupSceneOnefor an example of this.