消除动画播放时长问题
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m36s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m36s
This commit is contained in:
parent
16be989afc
commit
10de375739
@ -618,8 +618,8 @@ export class Icon extends Component {
|
|||||||
// 1.2s
|
// 1.2s
|
||||||
playDeleteAni() {
|
playDeleteAni() {
|
||||||
// 从对象池获取或重用winSpine节点
|
// 从对象池获取或重用winSpine节点
|
||||||
let winSpine = NodePoolManager.instance.getNodeFromPoolStatic('winSpine', this.winSpinePrefab);
|
// let winSpine = NodePoolManager.instance.getNodeFromPoolStatic('winSpine', this.winSpinePrefab);
|
||||||
// let winSpine = instantiate(this.winSpinePrefab)
|
let winSpine = instantiate(this.winSpinePrefab)
|
||||||
|
|
||||||
|
|
||||||
winSpine.setParent(this.node);
|
winSpine.setParent(this.node);
|
||||||
@ -640,7 +640,7 @@ export class Icon extends Component {
|
|||||||
children[i].active = false;
|
children[i].active = false;
|
||||||
}
|
}
|
||||||
winSpine.removeFromParent();
|
winSpine.removeFromParent();
|
||||||
NodePoolManager.instance.putNodeToPool('winSpine', winSpine);
|
// NodePoolManager.instance.putNodeToPool('winSpine', winSpine);
|
||||||
}, 1.2)
|
}, 1.2)
|
||||||
// skeleton.setCompleteListener(() => {
|
// skeleton.setCompleteListener(() => {
|
||||||
// skeleton.setCompleteListener(null);
|
// skeleton.setCompleteListener(null);
|
||||||
|
|||||||
@ -686,12 +686,12 @@ export class Roller extends BaseRoller {
|
|||||||
iconComponent.playDeleteAni();
|
iconComponent.playDeleteAni();
|
||||||
this.scheduleOnce(() => {
|
this.scheduleOnce(() => {
|
||||||
this.iconFactory.recycleIcon(iconNode);
|
this.iconFactory.recycleIcon(iconNode);
|
||||||
}, 1.2)
|
}, 1.5)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.scheduleOnce(() => {
|
this.scheduleOnce(() => {
|
||||||
this.node.emit(ROLLER_EVENT.ICON_DELETED, this._rollerId);
|
this.node.emit(ROLLER_EVENT.ICON_DELETED, this._rollerId);
|
||||||
}, 1.2)
|
}, 1.5)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user