mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
383 B
12 lines
383 B
import 'package:flame_forge2d/flame_forge2d.dart';
|
|
import 'package:pinball_audio/pinball_audio.dart';
|
|
import 'package:pinball_flame/pinball_flame.dart';
|
|
|
|
class BumperNoiseBehavior extends ContactBehavior {
|
|
@override
|
|
void beginContact(Object other, Contact contact) {
|
|
super.beginContact(other, contact);
|
|
readProvider<PinballAudioPlayer>().play(PinballAudio.bumper);
|
|
}
|
|
}
|