mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-10-09 11:45:24 +00:00
[engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.10 版本
This commit is contained in:
@@ -218,7 +218,7 @@ Tween.stopAllByTarget = function (target) {
|
||||
* Insert an action or tween to this sequence
|
||||
* !#zh
|
||||
* 插入一个 action 或者 tween 到队列中
|
||||
* @method then
|
||||
* @method then
|
||||
* @param {Action|Tween} other
|
||||
* @return {Tween}
|
||||
* @typescript then(other: Action|Tween<T>): Tween<T>
|
||||
@@ -294,6 +294,7 @@ Tween.prototype.start = function () {
|
||||
Tween.prototype.stop = function () {
|
||||
if (this._finalAction) {
|
||||
cc.director.getActionManager().removeAction(this._finalAction);
|
||||
this._finalAction = null;
|
||||
}
|
||||
return this;
|
||||
};
|
||||
@@ -414,7 +415,7 @@ Object.assign(Tween.prototype, {
|
||||
*/
|
||||
flipX () {
|
||||
return this.call(() => { this._target.scaleX *= -1; }, this);
|
||||
|
||||
|
||||
},
|
||||
/**
|
||||
* !#en Flips target's scaleY
|
||||
@@ -703,4 +704,4 @@ cc.tween = function (target) {
|
||||
};
|
||||
|
||||
cc.Tween = Tween;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user