Commit 2a10a741 authored by wjf's avatar wjf

l

parent f0e7b447
......@@ -19,13 +19,17 @@ export class Panel extends Module {
showAni() {
if (this.isShowing) return;
this.isShowing = true;
let oriY = this.y || 0;
this.y = -200;
Tween.get(this)
.to({ y: oriY }, 500, Ease.quartOut)
.call(() => {
this.isShowing = false;
})
// let oriY = this.y || 0;
// this.y = -200;
// Tween.get(this)
// .to({ y: oriY }, 500, Ease.quartOut)
// .call(() => {
// 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() {
......
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