This commit is contained in:
2026-02-08 17:05:17 +08:00
parent 8b88904ef7
commit 0b31c30b38
5 changed files with 46 additions and 42 deletions

View File

@@ -385,6 +385,7 @@ void GameMap::Enter()
void GameMap::OnUpdate(float deltaTime)
{
Actor::OnUpdate(deltaTime);
RefPtr<GameCamera> Cam = Global_Game::GetInstance().GetCamera();
if (Cam == nullptr)
@@ -431,7 +432,6 @@ void GameMap::OnUpdate(float deltaTime)
Layer.second->SetPosition(posX, posY);
}
Actor::OnUpdate(deltaTime);
}