mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-08 23:56:07 +08:00
Pause effects
This commit is contained in:
@ -23,7 +23,7 @@ abstract class Component {
|
||||
@mustCallSuper
|
||||
void update(double dt) {
|
||||
_effects.removeWhere((e) => e.hasFinished());
|
||||
_effects.forEach((e) => e.update(dt));
|
||||
_effects.where((e) => !e.isPaused).forEach((e) => e.update(dt));
|
||||
}
|
||||
|
||||
/// Renders this component on the provided Canvas [c].
|
||||
|
||||
Reference in New Issue
Block a user