fix: 动画效果
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user