mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Fix formatting
This commit is contained in:
@ -70,7 +70,6 @@ abstract class PositionComponentEffect {
|
|||||||
bool isMax() => percentage == null ? false : percentage == 1.0;
|
bool isMax() => percentage == null ? false : percentage == 1.0;
|
||||||
bool isMin() => percentage == null ? false : percentage == 0.0;
|
bool isMin() => percentage == null ? false : percentage == 0.0;
|
||||||
|
|
||||||
|
|
||||||
void reset() {
|
void reset() {
|
||||||
_isDisposed = false;
|
_isDisposed = false;
|
||||||
percentage = null;
|
percentage = null;
|
||||||
|
|||||||
@ -33,7 +33,7 @@ class MoveEffect extends PositionComponentEffect {
|
|||||||
@override
|
@override
|
||||||
void initialize(_comp) {
|
void initialize(_comp) {
|
||||||
super.initialize(_comp);
|
super.initialize(_comp);
|
||||||
if(!isAlternating) {
|
if (!isAlternating) {
|
||||||
endPosition = destination;
|
endPosition = destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ class RotateEffect extends PositionComponentEffect {
|
|||||||
@override
|
@override
|
||||||
void initialize(_comp) {
|
void initialize(_comp) {
|
||||||
super.initialize(_comp);
|
super.initialize(_comp);
|
||||||
if(!isAlternating) {
|
if (!isAlternating) {
|
||||||
endAngle = _comp.angle + radians;
|
endAngle = _comp.angle + radians;
|
||||||
}
|
}
|
||||||
_originalAngle = component.angle;
|
_originalAngle = component.angle;
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class ScaleEffect extends PositionComponentEffect {
|
|||||||
@override
|
@override
|
||||||
void initialize(_comp) {
|
void initialize(_comp) {
|
||||||
super.initialize(_comp);
|
super.initialize(_comp);
|
||||||
if(!isAlternating) {
|
if (!isAlternating) {
|
||||||
endSize = Position.fromSize(size);
|
endSize = Position.fromSize(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user