mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 20:36:31 +08:00
Removed type specific initialization in SequenceEffect
This commit is contained in:
@ -21,8 +21,11 @@ class RotateEffect extends PositionComponentEffect {
|
||||
}) : super(isInfinite, isAlternating);
|
||||
|
||||
@override
|
||||
set component(_comp) {
|
||||
super.component = _comp;
|
||||
void initialize(_comp) {
|
||||
super.initialize(_comp);
|
||||
if(!isAlternating) {
|
||||
endAngle = _comp.angle + radians;
|
||||
}
|
||||
_originalAngle = component.angle;
|
||||
_peakAngle = _originalAngle + radians;
|
||||
_direction = _peakAngle.sign;
|
||||
|
||||
Reference in New Issue
Block a user