Compare commits

...

2 Commits

Author SHA1 Message Date
TJH
87b89c26e5 totalwin
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m15s
2025-12-29 15:26:06 +08:00
TJH
651d496e7e scatter层级先放一放 2025-12-29 15:19:25 +08:00
4 changed files with 3276 additions and 2989 deletions

File diff suppressed because it is too large Load Diff

View File

@ -28,14 +28,14 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 90 "__id__": 94
}, },
{ {
"__id__": 92 "__id__": 96
} }
], ],
"_prefab": { "_prefab": {
"__id__": 94 "__id__": 98
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -227,29 +227,29 @@
"__id__": 11 "__id__": 11
}, },
{ {
"__id__": 43 "__id__": 47
}, },
{ {
"__id__": 55 "__id__": 59
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 81
},
{
"__id__": 83
},
{ {
"__id__": 85 "__id__": 85
}, },
{ {
"__id__": 87 "__id__": 87
},
{
"__id__": 89
},
{
"__id__": 91
} }
], ],
"_prefab": { "_prefab": {
"__id__": 89 "__id__": 93
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -293,23 +293,23 @@
"__id__": 12 "__id__": 12
}, },
{ {
"__id__": 28 "__id__": 32
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 36
},
{
"__id__": 38
},
{ {
"__id__": 40 "__id__": 40
},
{
"__id__": 42
},
{
"__id__": 44
} }
], ],
"_prefab": { "_prefab": {
"__id__": 42 "__id__": 46
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -351,26 +351,26 @@
"_children": [ "_children": [
{ {
"__id__": 13 "__id__": 13
},
{
"__id__": 19
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 21 "__id__": 27
}, },
{ {
"__id__": 23 "__id__": 29
},
{
"__id__": 25
} }
], ],
"_prefab": { "_prefab": {
"__id__": 27 "__id__": 31
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 75.802, "x": 70,
"y": 94, "y": 94,
"z": 0 "z": 0
}, },
@ -413,18 +413,15 @@
}, },
{ {
"__id__": 16 "__id__": 16
},
{
"__id__": 18
} }
], ],
"_prefab": { "_prefab": {
"__id__": 20 "__id__": 18
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -333.405, "x": -242.00000000000003,
"y": 22.338, "y": 20,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@ -549,42 +546,6 @@
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "4143eGnsZLGKtRmgjOp70S" "fileId": "4143eGnsZLGKtRmgjOp70S"
}, },
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 13
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"_alignFlags": 8,
"_target": null,
"_left": -150,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b6g/z07sBFlZE9hCst2rRM"
},
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
@ -598,17 +559,70 @@
"targetOverrides": null, "targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{
"__type__": "cc.Node",
"_name": "freeSpin",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 12
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
},
{
"__id__": 22
},
{
"__id__": 24
}
],
"_prefab": {
"__id__": 26
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 58.59499999999997,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 12 "__id__": 19
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 22 "__id__": 21
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -624,7 +638,7 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "1fODyF851Pj6iyo4oQL0Ep" "fileId": "6chw8ZUlpPhKz6Ubm4q694"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
@ -632,11 +646,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 12 "__id__": 19
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 24 "__id__": 23
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@ -669,26 +683,105 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "12ND6Own9OzIBaU0vlvlq/" "fileId": "c5Anfk2rJGA79+HRJXL8y7"
}, },
{ {
"__type__": "e6c8d4szahIuLbtf6yx+hH6", "__type__": "e6c8d4szahIuLbtf6yx+hH6",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": {
"__id__": 19
},
"_enabled": true,
"__prefab": {
"__id__": 25
},
"spriteName": "30",
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2bJNR+OXJGkZibBs9mJGdJ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "6f1+4lIepPHIPya0CoE+1F",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": { "node": {
"__id__": 12 "__id__": 12
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 26 "__id__": 28
},
"_contentSize": {
"__type__": "cc.Size",
"width": 571.19,
"height": 104
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
}, },
"spriteName": "30",
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "45BX2vxTFAEoqI+r5ZvIcK" "fileId": "1fODyF851Pj6iyo4oQL0Ep"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 30
},
"_resizeMode": 1,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 30,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "08UTp66llO9awEZzmd4go6"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
@ -714,18 +807,18 @@
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 29
},
{
"__id__": 31
},
{ {
"__id__": 33 "__id__": 33
},
{
"__id__": 35
},
{
"__id__": 37
} }
], ],
"_prefab": { "_prefab": {
"__id__": 35 "__id__": 39
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -762,11 +855,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 28 "__id__": 32
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 30 "__id__": 34
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -790,11 +883,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 28 "__id__": 32
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 32 "__id__": 36
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@ -835,11 +928,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 28 "__id__": 32
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 34 "__id__": 38
}, },
"spriteName": "29", "spriteName": "29",
"_id": "" "_id": ""
@ -871,7 +964,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 37 "__id__": 41
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -899,7 +992,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 39 "__id__": 43
}, },
"_opacity": 255, "_opacity": 255,
"_id": "" "_id": ""
@ -918,7 +1011,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 41 "__id__": 45
}, },
"_resizeMode": 1, "_resizeMode": 1,
"_layoutType": 2, "_layoutType": 2,
@ -969,20 +1062,20 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 44 "__id__": 48
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 50 "__id__": 54
}, },
{ {
"__id__": 52 "__id__": 56
} }
], ],
"_prefab": { "_prefab": {
"__id__": 54 "__id__": 58
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -1019,20 +1112,20 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 43 "__id__": 47
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 49
}, },
{ {
"__id__": 47 "__id__": 51
} }
], ],
"_prefab": { "_prefab": {
"__id__": 49 "__id__": 53
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -1069,11 +1162,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 44 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 46 "__id__": 50
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -1097,11 +1190,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 44 "__id__": 48
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 48 "__id__": 52
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@ -1181,11 +1274,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 43 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 51 "__id__": 55
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -1209,11 +1302,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 43 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 53 "__id__": 57
}, },
"_opacity": 255, "_opacity": 255,
"_id": "" "_id": ""
@ -1245,17 +1338,17 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 56 "__id__": 60
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 78 "__id__": 82
} }
], ],
"_prefab": { "_prefab": {
"__id__": 80 "__id__": 84
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -1292,30 +1385,30 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 55 "__id__": 59
}, },
"_children": [ "_children": [
{ {
"__id__": 57 "__id__": 61
}, },
{ {
"__id__": 65 "__id__": 69
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 71
},
{
"__id__": 73
},
{ {
"__id__": 75 "__id__": 75
},
{
"__id__": 77
},
{
"__id__": 79
} }
], ],
"_prefab": { "_prefab": {
"__id__": 77 "__id__": 81
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -1352,23 +1445,23 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 56 "__id__": 60
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 58
},
{
"__id__": 60
},
{ {
"__id__": 62 "__id__": 62
},
{
"__id__": 64
},
{
"__id__": 66
} }
], ],
"_prefab": { "_prefab": {
"__id__": 64 "__id__": 68
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -1405,11 +1498,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 57 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 59 "__id__": 63
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -1433,11 +1526,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 57 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 61 "__id__": 65
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@ -1478,11 +1571,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 57 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 63 "__id__": 67
}, },
"spriteName": "25", "spriteName": "25",
"_id": "" "_id": ""
@ -1510,20 +1603,20 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 56 "__id__": 60
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 66 "__id__": 70
}, },
{ {
"__id__": 68 "__id__": 72
} }
], ],
"_prefab": { "_prefab": {
"__id__": 70 "__id__": 74
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -1560,11 +1653,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 65 "__id__": 69
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 67 "__id__": 71
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -1588,11 +1681,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 65 "__id__": 69
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 69 "__id__": 73
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@ -1646,11 +1739,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 56 "__id__": 60
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 72 "__id__": 76
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -1674,11 +1767,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 56 "__id__": 60
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 74 "__id__": 78
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@ -1719,11 +1812,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 56 "__id__": 60
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 76 "__id__": 80
}, },
"clickEvents": [], "clickEvents": [],
"_interactable": true, "_interactable": true,
@ -1788,11 +1881,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 55 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 79 "__id__": 83
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -1833,7 +1926,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 82 "__id__": 86
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -1861,7 +1954,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 84 "__id__": 88
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@ -1906,7 +1999,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 86 "__id__": 90
}, },
"_opacity": 255, "_opacity": 255,
"_id": "" "_id": ""
@ -1925,7 +2018,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 88 "__id__": 92
}, },
"_resizeMode": 0, "_resizeMode": 0,
"_layoutType": 2, "_layoutType": 2,
@ -1976,7 +2069,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 91 "__id__": 95
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@ -2004,7 +2097,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 93 "__id__": 97
}, },
"_alignFlags": 45, "_alignFlags": 45,
"_target": null, "_target": null,

View File

@ -105,7 +105,7 @@ export class SlotGame extends Component {
this.grayNode = this.node.getChildByName('grayNode'); this.grayNode = this.node.getChildByName('grayNode');
this.winLayer = this.node.getChildByName('winLayer'); this.winLayer = this.node.getChildByName('winLayer');
this.readyHand = this.node.getChildByName('readyHand'); this.readyHand = this.node.getChildByName('readyHand');
this.scatterLayer = this.node.getChildByName('scatterLayer'); this.scatterLayer = this.node.getChildByPath('scatterLayer/layer')
this.winType = this.node.getChildByName('winType'); this.winType = this.node.getChildByName('winType');
@ -860,8 +860,9 @@ export class SlotGame extends Component {
} }
setFeatureBuyInteractable(isInteractable: boolean) { setFeatureBuyInteractable(isInteractable: boolean) {
this.featureBuyNode.getComponent(Sprite).grayscale = !isInteractable; // this.featureBuyNode.getComponent(Sprite).grayscale = !isInteractable;
this.featureBuyNode.getChildByName('FEATUREBUY').getComponent(Sprite).grayscale = !isInteractable; // this.featureBuyNode.getChildByName('FEATUREBUY').getComponent(Sprite).grayscale = !isInteractable;
this.featureBuyNode.getComponent(UIOpacity).opacity = isInteractable ? 255 : 160
this.featureBuyNode.getComponent(Button).interactable = isInteractable; this.featureBuyNode.getComponent(Button).interactable = isInteractable;
} }

View File

@ -212,6 +212,9 @@ export class SlotScene extends Component {
} }
this.slotBar.reconnectState(true); this.slotBar.reconnectState(true);
this.slotGame.changeBg(this.gameState.isInFreeSpin); this.slotGame.changeBg(this.gameState.isInFreeSpin);
// this.slotGame.rollerManager.checkNextRollerExpect(6, 1)
// this.slotGame.showScatterOnIsScroll();
if (this.gameState.isInFreeSpin) { if (this.gameState.isInFreeSpin) {
AudioManager.instance.playBGM("Free_Mode_BGM"); AudioManager.instance.playBGM("Free_Mode_BGM");
} else { } else {
@ -494,6 +497,8 @@ export class SlotScene extends Component {
allRollerStop() { allRollerStop() {
this.slotGame.setFastSpin(this.gameState.isFastSpin); this.slotGame.setFastSpin(this.gameState.isFastSpin);
this.checkHasGame(); this.checkHasGame();
// this.slotGame.rollerManager.checkNextRollerExpect(6, 1)
// this.slotGame.showScatterOnIsScroll();
// this.TotalWin.show(35, () => { // this.TotalWin.show(35, () => {
// this.slotBar.resetAllState(); // this.slotBar.resetAllState();
// }); // });