BehaviorScript and Scene should be loaded and closed with the load and close function instead of using the constructor and destructor.
Still, full destruction must however still be guarenteed.
Scenes must now also be switched from within a BehaviorScript which directly calls the Engine. Probably, a new SceneManager could fill this gap via an indirection.
BehaviorScript
andScene
should be loaded and closed with theload
andclose
function instead of using theconstructor
anddestructor
.Still, full destruction must however still be guarenteed.
Scenes
must now also be switched from within aBehaviorScript
which directly calls theEngine
. Probably, a newSceneManager
could fill this gap via an indirection.