Update lib/game/components/android_acres/behaviors/ramp_bonus_behavior.dart

Co-authored-by: Alejandro Santiago <dev@alestiago.com>
pull/296/head
Rui Miguel Alonso 3 years ago committed by GitHub
parent edbeb1abbe
commit 8de5de3008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,11 +36,9 @@ class RampBonusBehavior extends Component
sensor.bloc.stream.listen((state) { sensor.bloc.stream.listen((state) {
switch (state.type) { switch (state.type) {
case RampSensorType.door: case RampSensorType.door:
_handleOnDoor(state.ball!); return _handleOnDoor(state.ball!);
break;
case RampSensorType.inside: case RampSensorType.inside:
_handleOnInside(state.ball!); return _handleOnInside(state.ball!);
break;
} }
}); });
} }

Loading…
Cancel
Save