Skip to content

Commit

Permalink
chore: temporarily add print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Sep 12, 2023
1 parent eb4fc09 commit 5fc5e4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/flame_forge2d/lib/forge2d_game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,20 @@ class Forge2DGame extends FlameGame {
@override
@mustCallSuper
void lifecycleStateChange(AppLifecycleState state) {
// TODO(adil192): Remove print statements
print('lifecycleStateChange: $state');
switch (state) {
case AppLifecycleState.resumed:
case AppLifecycleState.inactive:
if (_pausedBecauseBackgrounded) {
print('Resuming engine');
resumeEngine();
}
case AppLifecycleState.paused:
case AppLifecycleState.detached:
case AppLifecycleState.hidden:
if (pauseWhenBackgrounded) {
print('Pausing engine');
pauseEngine();
_pausedBecauseBackgrounded = true;
}
Expand Down

0 comments on commit 5fc5e4c

Please sign in to comment.