feat: Add paint layers to HasPaint and associated component renders (#2073)

This commit is contained in:
Matt Bennett
2022-10-24 23:37:24 +01:00
committed by GitHub
parent 03e1f33d3d
commit 9e6bf4fbcc
7 changed files with 253 additions and 109 deletions

View File

@ -34,7 +34,8 @@ class Ball extends CircleComponent
static const degree = math.pi / 180;
@override
Future<void>? onLoad() {
Future<void> onLoad() async {
super.onLoad();
_resetBall;
final hitBox = CircleHitbox(
radius: radius,
@ -43,8 +44,6 @@ class Ball extends CircleComponent
addAll([
hitBox,
]);
return super.onLoad();
}
@override