mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 00:17:20 +08:00
refactor: Remove Loadable, optional onLoads (#1333)
This commit is contained in:
@ -28,7 +28,6 @@ class MultipleShapesExample extends FlameGame
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
await super.onLoad();
|
||||
final screenCollidable = ScreenCollidable();
|
||||
final snowman = CollidableSnowman(
|
||||
Vector2.all(150),
|
||||
@ -113,7 +112,6 @@ abstract class MyCollidable extends PositionComponent
|
||||
|
||||
@override
|
||||
Future<void> onLoad() async {
|
||||
await super.onLoad();
|
||||
_activePaint = Paint()..color = _defaultColor;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user