@cc-component/cc-ex-component 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/ExTween.ts +2 -3
- package/package.json +1 -1
package/assets/ExTween.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __private, ITweenOption } from 'cc';
|
|
2
2
|
import { tween, Tween } from 'cc';
|
|
3
3
|
import { _decorator, Node } from 'cc';
|
|
4
|
-
import { GameConfig } from 'db://assets/start/Interface/GameConfig';
|
|
5
4
|
const { ccclass } = _decorator;
|
|
6
5
|
|
|
7
6
|
@ccclass('ExTween')
|
|
@@ -36,13 +35,13 @@ export class ExTween extends Tween<any> {
|
|
|
36
35
|
super.stop();
|
|
37
36
|
return this;
|
|
38
37
|
}
|
|
39
|
-
start(): Tween<any> {
|
|
38
|
+
start(speed: number = 1): Tween<any> {
|
|
40
39
|
this.call(() => {
|
|
41
40
|
// console.log(`全部结束 ${this.key}`);
|
|
42
41
|
TweenManager.removeTween(this.key, this);
|
|
43
42
|
});
|
|
44
43
|
super.start();
|
|
45
|
-
this.pause(
|
|
44
|
+
this.pause(speed)//设置速度
|
|
46
45
|
|
|
47
46
|
return this
|
|
48
47
|
}
|