add time component

This commit is contained in:
arthur.jamet
2021-06-15 10:53:59 +02:00
parent 0bc65f2ffd
commit a2a686cdc7
3 changed files with 7 additions and 1 deletions
@@ -16,6 +16,6 @@ namespace BBM {
for (auto & [_ , healthComponent]: this->_wal.getScene()->view<HealthComponent>())
alivePlayersCount += (healthComponent.getHealthPoint() != 0);
if (alivePlayersCount <= 1)
Runner::gameState.nextScene = Runner::gameState.MainMenuScene;
Runner::gameState.nextScene = Runner::gameState.ScoreScene;
}
}