mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
All components must call super
This commit is contained in:
@ -10,7 +10,10 @@ class TimerComponent extends Component {
|
||||
TimerComponent(this.timer);
|
||||
|
||||
@override
|
||||
void update(double dt) => timer.update(dt);
|
||||
void update(double dt) {
|
||||
super.update(dt);
|
||||
timer.update(dt);
|
||||
}
|
||||
|
||||
@override
|
||||
void render(Canvas canvas) {}
|
||||
|
||||
Reference in New Issue
Block a user