mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-04 04:47:13 +08:00
Fix formatting
This commit is contained in:
@ -58,7 +58,7 @@ abstract class PositionComponentEffect {
|
||||
if (!hasFinished()) {
|
||||
currentTime += dt * curveDirection + driftTime * driftMultiplier;
|
||||
percentage = min(1.0, max(0.0, currentTime / travelTime));
|
||||
if (hasFinished()){
|
||||
if (hasFinished()) {
|
||||
onComplete?.call();
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,14 +22,14 @@ class MoveEffect extends PositionComponentEffect {
|
||||
double _yDistance;
|
||||
double _yDirection;
|
||||
|
||||
MoveEffect({
|
||||
@required this.destination,
|
||||
MoveEffect(
|
||||
{@required this.destination,
|
||||
@required this.speed,
|
||||
this.curve,
|
||||
isInfinite = false,
|
||||
isAlternating = false,
|
||||
Function onComplete
|
||||
}) : super(isInfinite, isAlternating, onComplete: onComplete);
|
||||
Function onComplete})
|
||||
: super(isInfinite, isAlternating, onComplete: onComplete);
|
||||
|
||||
@override
|
||||
void initialize(_comp) {
|
||||
|
||||
Reference in New Issue
Block a user