修复tween中start报错

This commit is contained in:
yhh
2021-08-03 00:09:43 +08:00
parent fd82486bbc
commit 2a026726db
5 changed files with 29 additions and 3 deletions

View File

@@ -5945,6 +5945,18 @@ var TimeUtils = /** @class */ (function () {
return TimeUtils;
}());
var es;
(function (es) {
/**
* 用于记录所有组件的属性值
*/
var TypeBit = /** @class */ (function () {
function TypeBit() {
}
return TypeBit;
}());
es.TypeBit = TypeBit;
})(es || (es = {}));
var es;
(function (es) {
/**
* 开辟一个新线程
@@ -11261,7 +11273,7 @@ var es;
};
Tween.prototype.start = function () {
if (!this._isFromValueOverridden)
this._fromValue = this._target.getTargetObject();
this._fromValue = this._target.getTweenedValue();
if (this._tweenState == TweenState.complete) {
this._tweenState = TweenState.running;
es.TweenManager.addTween(this);