mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Updated according to comments
This commit is contained in:
@ -15,8 +15,10 @@ class SequenceEffect extends PositionComponentEffect {
|
||||
isInfinite = false,
|
||||
isAlternating = false,
|
||||
}) : super(isInfinite, isAlternating) {
|
||||
/// No effects can be added to components from the start
|
||||
assert(effects.every((effect) => effect.component == null));
|
||||
assert(
|
||||
effects.every((effect) => effect.component == null),
|
||||
"No effects can be added to components from the start",
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user