Commit 2a10a741 authored by wjf's avatar wjf

l

parent f0e7b447
...@@ -19,13 +19,17 @@ export class Panel extends Module { ...@@ -19,13 +19,17 @@ export class Panel extends Module {
showAni() { showAni() {
if (this.isShowing) return; if (this.isShowing) return;
this.isShowing = true; this.isShowing = true;
let oriY = this.y || 0; // let oriY = this.y || 0;
this.y = -200; // this.y = -200;
Tween.get(this) // Tween.get(this)
.to({ y: oriY }, 500, Ease.quartOut) // .to({ y: oriY }, 500, Ease.quartOut)
.call(() => { // .call(() => {
this.isShowing = false; // this.isShowing = false;
}) // })
//统一修改
this.anchor.set(375, 1624/2);
this.scale.set(0.1, 0.1)
Tween.get(this).to({ scaleX: 1, scaleY: 1 }, 500, Ease.backOut);
} }
initEvents() { initEvents() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment