How to set up win condition after AI is defeated?

After completing a mission ex: (defeat all enemies) I want a widget to announce to the player that they have won. How do I set this up?

gamestate is good for this,

have an int or array tracking the number of enemies.
on enemy death call an event on gamestate to update int/array
have the widget bind to that event and when it reaches 0, WIN

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.