From 37f7b12f577e3770df494c3e427bc2f8aa690411 Mon Sep 17 00:00:00 2001 From: Luan Nico Date: Sun, 26 Nov 2023 12:32:59 -0500 Subject: [PATCH] fix: Use world on tap_callbacks_example (#2875) Use world on tap_callbacks_example. We should just standardize all examples to use the world unless there is a reason not to, in order to avoid confusing users. --- examples/lib/stories/input/tap_callbacks_example.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/lib/stories/input/tap_callbacks_example.dart b/examples/lib/stories/input/tap_callbacks_example.dart index 1aa852400..f18412b50 100644 --- a/examples/lib/stories/input/tap_callbacks_example.dart +++ b/examples/lib/stories/input/tap_callbacks_example.dart @@ -13,8 +13,8 @@ class TapCallbacksExample extends FlameGame { @override Future onLoad() async { - add(TappableSquare()..anchor = Anchor.center); - add(TappableSquare()..y = 350); + world.add(TappableSquare()..anchor = Anchor.center); + world.add(TappableSquare()..y = 350); } }