|
|
@ -29,7 +29,7 @@ class PinballTestGame extends PinballGame {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Future<void> onLoad() async {
|
|
|
|
Future<void> onLoad() async {
|
|
|
|
if (_assets != null) {
|
|
|
|
if (_assets != null) {
|
|
|
|
await Future.wait(_assets!.map(images.load));
|
|
|
|
await images.loadAll(_assets!);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
await super.onLoad();
|
|
|
|
await super.onLoad();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -50,7 +50,7 @@ class DebugPinballTestGame extends DebugPinballGame {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Future<void> onLoad() async {
|
|
|
|
Future<void> onLoad() async {
|
|
|
|
if (_assets != null) {
|
|
|
|
if (_assets != null) {
|
|
|
|
await Future.wait(_assets!.map(images.load));
|
|
|
|
await images.loadAll(_assets!);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
await super.onLoad();
|
|
|
|
await super.onLoad();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -62,7 +62,7 @@ class EmptyPinballTestGame extends PinballTestGame {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Future<void> onLoad() async {
|
|
|
|
Future<void> onLoad() async {
|
|
|
|
if (_assets != null) {
|
|
|
|
if (_assets != null) {
|
|
|
|
await Future.wait(_assets!.map(images.load));
|
|
|
|
await images.loadAll(_assets!);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|