fix: 动画效果

This commit is contained in:
guanchao
2026-10-27 13:27:45 +08:00
parent a7b162168b
commit 49bc2235b3
14 changed files with 236 additions and 44 deletions
+2 -1
View File
@@ -14,10 +14,11 @@ export default class RedeemCode extends cc.Component {
onEnable() {
this.unschedule(this.playPopupEntrance);
PopupAnimator.prepareOpen(popupContent(this.node, ["New Sprite(Splash)"]));
this.scheduleOnce(this.playPopupEntrance, 0);
}
private playPopupEntrance() {
if (cc.isValid(this.node, true) && this.node.activeInHierarchy) PopupAnimator.open(popupContent(this.node, ["New Sprite(Splash)"]));
if (cc.isValid(this.node, true) && this.node.activeInHierarchy) PopupAnimator.openPrepared(popupContent(this.node, ["New Sprite(Splash)"]));
}
@property(cc.Button)