音效资源添加,小游戏中小游戏界面可以点击快速跳过
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m12s

This commit is contained in:
TJH 2025-12-29 15:40:00 +08:00
parent 87b89c26e5
commit d8f70ea441
4 changed files with 24 additions and 1 deletions

View File

@ -191,7 +191,7 @@
"node": {
"__id__": 2
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 8
},

View File

@ -26,6 +26,7 @@ export class FreeSpinAdd extends Component {
let titleNode = this.freeSpinAddSpine.node.getChildByName('TitleNode');
this.freeSpinEnterTitleSp = titleNode.getChildByName('SpriteFREESPINWON').getComponent(Sprite);
this.freeSpinAddUI.on(Node.EventType.TOUCH_START, this.onTouch, this);
this.freeCount = freeCount;
this.freeCountLabel.string = `+ ${freeCount}`;
@ -34,6 +35,14 @@ export class FreeSpinAdd extends Component {
this.closeCallBack = closeCallBack;
}
async onTouch() {
if (!this.freeSpinAddUI) return; // 添加节点存在检查
this.onClose()
}
playAnimation() {
this.freeSpinAddSpine.clearTracks();
this.freeSpinAddSpine.setAnimation(0, 'animation', true);

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "a0a2b727-37d9-4051-b08c-d546919ed1a8",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}