Scenes should trigger overridable handlers in the current/previous scene. Args should contain the instance of the scene left/being entered.
class Scene
{
virtual void OnSceneEnter(Args e) {
// When a scene is entered, not necessarily initialized.
}
virtual void OnSceneLeave(Args e) {
// When a scene is left, not necessarily unloaded
}
}
Scenes should trigger overridable handlers in the current/previous scene. Args should contain the instance of the scene left/being entered.