# Conflicts:
#	extensions/ecs-tween/lib/framework.d.ts
This commit is contained in:
yhh
2021-08-04 12:54:18 +08:00
13 changed files with 67 additions and 1477 deletions

View File

@@ -31,7 +31,7 @@ module es {
}
if (this._shouldRecycleTween && TweenManager.cacheColorTweens) {
Pool.free(this);
Pool.free(ColorTween, this);
}
}
}

View File

@@ -83,7 +83,7 @@ module es {
this._target = null;
this._nextTween = null;
this._transform = null;
Pool.free(this);
Pool.free(Vector2Tween, this);
}
}
}

View File

@@ -180,7 +180,7 @@ module es {
public start() {
if (!this._isFromValueOverridden)
this._fromValue = this._target.getTargetObject();
this._fromValue = this._target.getTweenedValue();
if (this._tweenState == TweenState.complete) {
this._tweenState = TweenState.running;

View File

@@ -24,7 +24,7 @@ module es {
super.recycleSelf();
if (this._shouldRecycleTween && TweenManager.cacheNumberTweens)
Pool.free(this);
Pool.free(NumberTween, this);
}
}
@@ -52,7 +52,7 @@ module es {
super.recycleSelf();
if (this._shouldRecycleTween && TweenManager.cacheVector2Tweens)
Pool.free(this);
Pool.free(Vector2Tween, this);
}
}
@@ -85,7 +85,7 @@ module es {
super.recycleSelf();
if (this._shouldRecycleTween && TweenManager.cacheRectTweens)
Pool.free(this);
Pool.free(RectangleTween, this);
}
}