Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
jonylu7 committed Jun 14, 2024
1 parent 8dba209 commit 190e827
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Scene/SandBoxScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ void SandBoxScene::Update() {
std::make_shared<Util::Image>("../assets/images/AIWon.png"));
}
if (m_EnemyObjectManager->getAvatarManager()
->getAvatarArray()
.empty() &&
m_EnemyObjectManager->getStructureManager()
->getStructureArray()
->getBuiltStructureArray()
.empty()) {
->getAvatarArray()
.empty() &&
m_EnemyObjectManager->getStructureManager()
->getStructureArray()
->getBuiltStructureArray()
.empty() ||
Util::Input::IsKeyPressed(Util::Keycode::K)) {
m_stage = Stages::PLAYER_WON;
m_WUI->setPausedImage(std::make_shared<Util::Image>(
"../assets/images/PlayerWon.png"));
Expand Down

0 comments on commit 190e827

Please sign in to comment.