Commit 3c3c0257 authored by liubing's avatar liubing

增加音效。

parent 76037eec
{
"ver": "2.0.1",
"uuid": "8cf80515-8175-476b-b70e-ac7db195b004",
"downloadMode": 0,
"duration": 0.888163,
"subMetas": {}
}
\ No newline at end of file
......@@ -2,6 +2,6 @@
"ver": "2.0.1",
"uuid": "beeb5a7b-0e42-4910-985b-a099f10e328b",
"downloadMode": 0,
"duration": 0.6818,
"duration": 0.636667,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "a99a5d70-5de9-4794-bd96-369d03aba1b8",
"downloadMode": 0,
"duration": 3.343673,
"subMetas": {}
}
\ No newline at end of file
......@@ -23,7 +23,7 @@
"__id__": 260
},
{
"__id__": 273
"__id__": 277
}
],
"_active": false,
......@@ -11729,6 +11729,12 @@
},
{
"__id__": 271
},
{
"__id__": 273
},
{
"__id__": 275
}
],
"_active": true,
......@@ -12267,6 +12273,168 @@
"preload": false,
"_id": "dbccc2jl1Lw6v0V1Jts0W8"
},
{
"__type__": "cc.Node",
"_name": "yourTurn",
"_objFlags": 0,
"_parent": {
"__id__": 260
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 274
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "27g1weLrdIyqYo+kcsBMj7"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 273
},
"_enabled": true,
"_clip": {
"__uuid__": "a99a5d70-5de9-4794-bd96-369d03aba1b8"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "bf2aQP8dhEO5rprrlmK+kb"
},
{
"__type__": "cc.Node",
"_name": "otherTurn",
"_objFlags": 0,
"_parent": {
"__id__": 260
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 276
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9c9YVfAuRI4oMf8rii5gJc"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 275
},
"_enabled": true,
"_clip": {
"__uuid__": "8cf80515-8175-476b-b70e-ac7db195b004"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "587LqNLsNGKLid4SNGEAhy"
},
{
"__type__": "cc.Node",
"_name": "nodes",
......@@ -12276,10 +12444,10 @@
},
"_children": [
{
"__id__": 274
"__id__": 278
},
{
"__id__": 276
"__id__": 280
}
],
"_active": true,
......@@ -12337,13 +12505,13 @@
"_name": "light",
"_objFlags": 0,
"_parent": {
"__id__": 273
"__id__": 277
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 275
"__id__": 279
}
],
"_prefab": null,
......@@ -12399,7 +12567,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 274
"__id__": 278
},
"_enabled": true,
"_materials": [
......@@ -12431,13 +12599,13 @@
"_name": "star",
"_objFlags": 0,
"_parent": {
"__id__": 273
"__id__": 277
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 277
"__id__": 281
}
],
"_prefab": null,
......@@ -12493,7 +12661,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 276
"__id__": 280
},
"_enabled": true,
"_materials": [
......
......@@ -710,15 +710,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (playerMe.color == this._status.current) {
this.stopGreyDice();
if (this._status.letter == "") {
await this.playLocalAudio("yourTurn");
this.showYourTurn();
this.blinkTheDice();
} else {
this.stopBlinkTheDice();
this.rollPiece(this.getCurrentPiece());
}
} else {
this.audioId = await this.playAudioByUrl(this.data.otherTurn);
if (this._status.letter == "") {
await this.playLocalAudio("otherTurn");
}
// this.audioId = await this.playAudioByUrl(this.data.otherTurn);
// this.showOtherTurn();
this.greyDice();
}
......
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