Where are we now?
At this point, all the errors in our GameObject
class, as well as all component-related classes, are gone. We are making good progress.
Furthermore, we can revisit the ScreenManager.h
file and uncomment all the commented-out code.
Open ScreenManager.h
and uncomment the #include
directive, as follows:
//#include "LevelManager.h"
Change it to this:
#include "LevelManager.h"
Do the same for the functions from the ScreenManagerRemoteControl
interface that are implemented in ScreenManager.h
. They look like the following:
void ScreenManagerRemoteControl:: Â Â Â Â Â Â Â Â loadLevelInPlayMode(string screenToLoad) Â Â Â Â { Â Â Â Â Â Â Â Â //m_LevelManager.getGameObjects().clear(); Â Â Â Â Â Â Â Â //m_LevelManager. Â Â Â Â Â Â Â Â Â Â Â Â //loadGameObjectsForPlayMode(screenToLoad...