|
|
@ -134,9 +134,9 @@ abstract class DashNestBumper extends BodyComponent<PinballGame>
|
|
|
|
await super.onLoad();
|
|
|
|
await super.onLoad();
|
|
|
|
await _loadSprites();
|
|
|
|
await _loadSprites();
|
|
|
|
|
|
|
|
|
|
|
|
// TODO(alestiago): Look into using onNewState instead.
|
|
|
|
// TODO(erickzanardo): Look into using onNewState instead.
|
|
|
|
// onNewState(gameRef.read<GameState>());
|
|
|
|
// Currently doing: onNewState(gameRef.read<GameState>()) will throw an
|
|
|
|
// Exception: build context is not available yet
|
|
|
|
// `Exception: build context is not available yet`
|
|
|
|
deactivate();
|
|
|
|
deactivate();
|
|
|
|
await add(_spriteComponent);
|
|
|
|
await add(_spriteComponent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|