小游戏中再中小游戏的显示bug
This commit is contained in:
parent
f93532d44f
commit
f9f17d6658
File diff suppressed because it is too large
Load Diff
@ -1233,7 +1233,7 @@
|
||||
"__expectedType__": "sp.SkeletonData"
|
||||
},
|
||||
"defaultSkin": "default",
|
||||
"defaultAnimation": "<None>",
|
||||
"defaultAnimation": "in",
|
||||
"_premultipliedAlpha": false,
|
||||
"_timeScale": 1,
|
||||
"_preCacheMode": 0,
|
||||
|
||||
@ -589,10 +589,13 @@ export class SlotBar extends Component {
|
||||
let num1 = leftCount / 10
|
||||
let num2 = leftCount % 10
|
||||
leftCount_1.node.active = true
|
||||
leftCount_1.clearTracks()
|
||||
this.leftCount.clearTracks()
|
||||
this.leftCount.setAnimation(0, `anim_${num1}`, true)
|
||||
leftCount_1.setAnimation(0, `anim_${num2}`, true)
|
||||
} else {
|
||||
leftCount_1.node.active = false
|
||||
this.leftCount.clearTracks()
|
||||
this.leftCount.setAnimation(0, `anim_${leftCount}`, true)
|
||||
|
||||
}
|
||||
|
||||
@ -460,20 +460,20 @@ export class SlotGame extends Component {
|
||||
multiCopy.getComponent(UIOpacity).opacity = 0
|
||||
multiCopy.setScale(0, 0, 0)
|
||||
tween(multiCopy)
|
||||
.delay(0.7)
|
||||
.to(0.3, { scale: new Vec3(1.2, 1.2, 1) })
|
||||
.to(0.3, { scale: new Vec3(0, 0, 0) })
|
||||
.delay(0.5)
|
||||
.to(0.4, { scale: new Vec3(1.2, 1.2, 1) })
|
||||
.to(0.4, { scale: new Vec3(0, 0, 0) })
|
||||
.start()
|
||||
|
||||
tween(multiCopy.getComponent(UIOpacity))
|
||||
.delay(0.7)
|
||||
.to(0.3, { opacity: 255 })
|
||||
.to(0.3, { opacity: 0 })
|
||||
.delay(0.5)
|
||||
.to(0.4, { opacity: 255 })
|
||||
.to(0.4, { opacity: 0 })
|
||||
.start()
|
||||
|
||||
tween(multiCopy)
|
||||
.delay(1)
|
||||
.to(0.3, { position: new Vec3(0, -400, 0) })
|
||||
.delay(0.8)
|
||||
.to(0.5, { position: new Vec3(0, -550, 0) })
|
||||
.call(() => {
|
||||
multiCopy.destroy()
|
||||
})
|
||||
|
||||
@ -608,14 +608,17 @@ export class Roller extends BaseRoller {
|
||||
let position = this.getIconPosition(startPos, lHeight);
|
||||
|
||||
// 设置初始位置(向下偏移)
|
||||
icon.setPosition(position.add(v3(0, -offset, 0)));
|
||||
icon.setPosition(position);
|
||||
iconComponent.playSpawnAni();
|
||||
|
||||
// // 创建回弹动画
|
||||
tween(icon)
|
||||
.by(time, { position: v3(0, offset, 0) })
|
||||
.start();
|
||||
// 创建回弹动画
|
||||
if (icon.parent.name != 'scatterLayer') {
|
||||
icon.setPosition(position.add(v3(0, -offset, 0)));
|
||||
tween(icon)
|
||||
.by(time, { position: v3(0, offset, 0) })
|
||||
.start();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// 延迟切换到停止状态
|
||||
@ -890,11 +893,14 @@ export class Roller extends BaseRoller {
|
||||
easing: 'quadIn' // 下落加速
|
||||
})
|
||||
.call(() => {
|
||||
tween(update.node)
|
||||
.by(0.2, { position: v3(0, 50, 0) })
|
||||
.by(0.1, { position: v3(0, -50, 0) })
|
||||
.start();
|
||||
if (update.node.parent.name != "scatterLayer") {
|
||||
tween(update.node)
|
||||
.by(0.2, { position: v3(0, 50, 0) })
|
||||
.by(0.1, { position: v3(0, -50, 0) })
|
||||
.start()
|
||||
}
|
||||
})
|
||||
|
||||
.start();
|
||||
}
|
||||
|
||||
@ -917,7 +923,7 @@ export class Roller extends BaseRoller {
|
||||
|
||||
// 根据最长的动画时间调整音效和事件触发时间
|
||||
let totalFallTime = updates.length > 0 ?
|
||||
(updates.length - 1) * delayBetweenIcons + 0.5 : 0.5;
|
||||
(updates.length - 1) * delayBetweenIcons + 0.6 : 0.3;
|
||||
|
||||
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import { PREVIEW } from "cc/env"
|
||||
const gameId = "rp_10012";
|
||||
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
|
||||
let apiaddr = "";
|
||||
let token = "eyJQIjoxMDA5NDksIkUiOjE3NTg4OTg0NjMsIlMiOjEwMDMsIkQiOiJycF8xMDAxMiJ9.U6oTRkMKLWUCmTRlXmEWvFfPz7OscWMR_6oxBHzTVi8";
|
||||
let token = "eyJQIjoxMDA5NDksIkUiOjE3NTg5ODA0MDksIlMiOjEwMDMsIkQiOiJycF8xMDAxMiJ9.ZFat9QLa6I2k6W81gYPCPCtgu_KGvLvwJ0noSRdLXJY";
|
||||
let language = "en"
|
||||
let currency = "THB"
|
||||
let supportUrl = ""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user