diff --git a/packages/trashy_road/lib/src/game/entities/player/behaviors/player_hinting_behavior.dart b/packages/trashy_road/lib/src/game/entities/player/behaviors/player_hinting_behavior.dart index 6715eaa1..2a2bcdaf 100644 --- a/packages/trashy_road/lib/src/game/entities/player/behaviors/player_hinting_behavior.dart +++ b/packages/trashy_road/lib/src/game/entities/player/behaviors/player_hinting_behavior.dart @@ -102,9 +102,6 @@ class PlayerHintingBehavior extends Behavior @override void update(double dt) { super.update(dt); - if (bloc.state.status != GameStatus.playing) { - return; - } if (_trash.isEmpty || _closestTrash == null) { // If there is no trash, no hint is needed and thus, the behavior can be @@ -113,6 +110,10 @@ class PlayerHintingBehavior extends Behavior return; } + if (bloc.state.status != GameStatus.playing) { + return; + } + _lastVisibleTrash = _isTrashVisible ? 0 : _lastVisibleTrash + dt; _lastHint += dt;