7SceneMgr::SceneMgr() =
default;
10SceneMgr::~SceneMgr() =
default;
13void SceneMgr::Init() {
14 if (m_scene ==
nullptr)
return;
20void SceneMgr::Update(
float elapsedTime) {
22 if (m_scene ==
nullptr)
25 m_scene->Tick(elapsedTime);
30void SceneMgr::SetScene(
Scene* scene) {
32 if (m_scene !=
nullptr) {
33 m_scene->SetUndestroyable(
false);
35 CORE->GetCore(
MemoryMgr)->ExterminateObjects();
40 if (m_scene !=
nullptr)
44Scene* SceneMgr::GetCurrentScene()
const {