Commit e74ef7e0 authored by haiyoucuv's avatar haiyoucuv

init

parent 0f6d5422
......@@ -101,7 +101,7 @@ export class Target extends Component {
start() {
}
async showBanner(bannerNode: Node) {
async showBanner(bannerNode: Node, t: number = 2.666) {
await new Promise<void>((resolve) => {
bannerNode.active = true;
this.bannerBg.active = false;
......@@ -121,8 +121,8 @@ export class Target extends Component {
.start();
tween(this.banner)
.delay(2.666)
.to(0.666, {
.delay(t)
.to(0.5, {
position: v3(0, 345, 0),
scale: v3(0.15, 0.15, 1)
}, { easing: easing.quadInOut })
......@@ -140,7 +140,7 @@ export class Target extends Component {
async showTarget3() {
this.showTopCard()
await this.showBanner(this.bannerArr[2]);
await this.showBanner(this.bannerArr[2], 1);
}
async showTarget2() {
......
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