mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-31 00:48:47 +08:00
Make gameRef late (#742)
This commit is contained in:
@ -13,7 +13,7 @@ class MyParallaxComponent extends ParallaxComponent
|
||||
with HasGameRef<ComponentParallaxGame> {
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
parallax = await gameRef!.loadParallax(
|
||||
parallax = await gameRef.loadParallax(
|
||||
[
|
||||
'parallax/bg.png',
|
||||
'parallax/mountain-far.png',
|
||||
|
||||
Reference in New Issue
Block a user