mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
refactor: Remove Loadable, optional onLoads (#1333)
This commit is contained in:
@ -20,7 +20,6 @@ class ComposabilityExample extends FlameGame with HasDraggables {
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
await super.onLoad();
|
||||
parentSquare = ParentSquare(Vector2.all(200), Vector2.all(300))
|
||||
..anchor = Anchor.center;
|
||||
add(parentSquare);
|
||||
@ -46,7 +45,6 @@ class ParentSquare extends RectangleComponent with HasGameRef {
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
super.onLoad();
|
||||
createChildren();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user