音效资源添加,小游戏中小游戏界面可以点击快速跳过
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m12s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m12s
This commit is contained in:
parent
87b89c26e5
commit
d8f70ea441
@ -191,7 +191,7 @@
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_enabled": false,
|
||||
"__prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
|
||||
@ -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);
|
||||
|
||||
BIN
assets/resources/audio/盘面转轴转动音效.mp3
Normal file
BIN
assets/resources/audio/盘面转轴转动音效.mp3
Normal file
Binary file not shown.
14
assets/resources/audio/盘面转轴转动音效.mp3.meta
Normal file
14
assets/resources/audio/盘面转轴转动音效.mp3.meta
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user