13SScene::~SScene() =
default;
16 InitGameObject(m_root);
19void SScene::Tick(
float elapsedTime) {
20 TickGameObject(m_root, elapsedTime);
23void SScene::Destroy() {
29 const auto& children = obj->GetChildren();
30 for (
const auto& child : children) {
31 InitGameObject(child);
35void SScene::TickGameObject(
SGameObject* obj,
float elapsedTime) {
36 obj->Tick(elapsedTime);
37 const auto& children = obj->GetChildren();
38 for (
const auto& child : children) {
39 TickGameObject(child, elapsedTime);