diff --git a/assets/Game/prefabs/FreeSpinEnter/FreeSpinEnter.prefab b/assets/Game/prefabs/FreeSpinEnter/FreeSpinEnter.prefab index 15f1527..b38a848 100644 --- a/assets/Game/prefabs/FreeSpinEnter/FreeSpinEnter.prefab +++ b/assets/Game/prefabs/FreeSpinEnter/FreeSpinEnter.prefab @@ -31,11 +31,11 @@ "_active": true, "_components": [ { - "__id__": 70 + "__id__": 72 } ], "_prefab": { - "__id__": 72 + "__id__": 74 }, "_lpos": { "__type__": "cc.Vec3", @@ -405,14 +405,14 @@ "_active": true, "_components": [ { - "__id__": 65 + "__id__": 67 }, { - "__id__": 67 + "__id__": 69 } ], "_prefab": { - "__id__": 69 + "__id__": 71 }, "_lpos": { "__type__": "cc.Vec3", @@ -459,20 +459,20 @@ "__id__": 32 }, { - "__id__": 44 + "__id__": 46 } ], "_active": true, "_components": [ { - "__id__": 60 + "__id__": 62 }, { - "__id__": 62 + "__id__": 64 } ], "_prefab": { - "__id__": 64 + "__id__": 66 }, "_lpos": { "__type__": "cc.Vec3", @@ -796,10 +796,13 @@ "_components": [ { "__id__": 41 + }, + { + "__id__": 43 } ], "_prefab": { - "__id__": 43 + "__id__": 45 }, "_lpos": { "__type__": "cc.Vec3", @@ -1016,6 +1019,25 @@ "__type__": "cc.CompPrefabInfo", "fileId": "75/UcrwWpJ+7xB+LjRbVUM" }, + { + "__type__": "cc.UIOpacity", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 32 + }, + "_enabled": true, + "__prefab": { + "__id__": 44 + }, + "_opacity": 255, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d9yuUzDH1LYbC0lprIRJV1" + }, { "__type__": "cc.PrefabInfo", "root": { @@ -1039,20 +1061,20 @@ }, "_children": [ { - "__id__": 45 + "__id__": 47 } ], "_active": true, "_components": [ { - "__id__": 55 + "__id__": 57 }, { - "__id__": 57 + "__id__": 59 } ], "_prefab": { - "__id__": 59 + "__id__": 61 }, "_lpos": { "__type__": "cc.Vec3", @@ -1089,14 +1111,11 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 44 + "__id__": 46 }, "_children": [], "_active": true, "_components": [ - { - "__id__": 46 - }, { "__id__": 48 }, @@ -1105,10 +1124,13 @@ }, { "__id__": 52 + }, + { + "__id__": 54 } ], "_prefab": { - "__id__": 54 + "__id__": 56 }, "_lpos": { "__type__": "cc.Vec3", @@ -1145,11 +1167,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 45 + "__id__": 47 }, "_enabled": true, "__prefab": { - "__id__": 47 + "__id__": 49 }, "_contentSize": { "__type__": "cc.Size", @@ -1173,11 +1195,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 45 + "__id__": 47 }, "_enabled": true, "__prefab": { - "__id__": 49 + "__id__": 51 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1218,11 +1240,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 45 + "__id__": 47 }, "_enabled": true, "__prefab": { - "__id__": 51 + "__id__": 53 }, "clickEvents": [], "_interactable": true, @@ -1262,7 +1284,7 @@ "_duration": 0.1, "_zoomScale": 1.1, "_target": { - "__id__": 45 + "__id__": 47 }, "_id": "" }, @@ -1276,11 +1298,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 45 + "__id__": 47 }, "_enabled": true, "__prefab": { - "__id__": 53 + "__id__": 55 }, "spriteName": "font_start", "_id": "" @@ -1308,11 +1330,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 44 + "__id__": 46 }, "_enabled": true, "__prefab": { - "__id__": 56 + "__id__": 58 }, "_contentSize": { "__type__": "cc.Size", @@ -1336,11 +1358,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 44 + "__id__": 46 }, "_enabled": true, "__prefab": { - "__id__": 58 + "__id__": 60 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1398,7 +1420,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 61 + "__id__": 63 }, "_contentSize": { "__type__": "cc.Size", @@ -1426,7 +1448,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 63 + "__id__": 65 }, "_opacity": 255, "_id": "" @@ -1458,7 +1480,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 66 + "__id__": 68 }, "_contentSize": { "__type__": "cc.Size", @@ -1486,7 +1508,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 68 + "__id__": 70 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1544,7 +1566,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 71 + "__id__": 73 }, "_contentSize": { "__type__": "cc.Size", diff --git a/assets/Game/prefabs/SlotScene.prefab b/assets/Game/prefabs/SlotScene.prefab index 2937fb9..d7c264c 100644 --- a/assets/Game/prefabs/SlotScene.prefab +++ b/assets/Game/prefabs/SlotScene.prefab @@ -2294,7 +2294,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "823nBecVBPhI5C8P77O4S+" + "fileId": "b1Dk0giptJMp5XYNz7ZltE" }, { "__type__": "cc.PrefabInfo", @@ -2304,7 +2304,7 @@ "asset": { "__id__": 0 }, - "fileId": "a0hdgXpfZKxqsnYuJSnZC4", + "fileId": "8cY3wSHlBC6ZVGRkTFtR9O", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2335,7 +2335,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "9ce6DOcBtAQrHThmWt1sJc" + "fileId": "74+quxp+FLradCBcY4lIMt" }, { "__type__": "cc.PrefabInfo", @@ -2345,7 +2345,7 @@ "asset": { "__id__": 0 }, - "fileId": "bd8ZuSFYZK3J2wrqYr7Wyc", + "fileId": "93OVcbMYNDnLGEHxE2psw3", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2376,7 +2376,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "1b2WJmuDhAzoKqLj8i2nz6" + "fileId": "75Jt3FNQ1KKbRNYV1ZtDow" }, { "__type__": "5fc10Zl7lVO97/rr2J1uxWH", @@ -2400,7 +2400,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "fewS9iKeFK7KfmQG/dtbkn" + "fileId": "cdLA8QsbZIH4lrmLWw718p" }, { "__type__": "5fd13+Xa69CZogb3Q/F1lnC", @@ -2573,7 +2573,7 @@ "asset": { "__id__": 0 }, - "fileId": "7bseyRWWxCk77UrLLdp7Kp", + "fileId": "00HCRcgUJCuYtafQ85coIs", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2598,7 +2598,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "94aEoK1cJAWL9N3DkOGlzr" + "fileId": "a8CS0yXt9KK6hx/xvpgamm" }, { "__type__": "cc.UITransform", @@ -2626,7 +2626,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "4eZVw3jxtJ/6qcGZmzEvs0" + "fileId": "50vMeNlgJBBass2F1a/Ovw" }, { "__type__": "cc.Sprite", @@ -2671,7 +2671,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "3d5Z+SS6xOzo+u9i0rI+L7" + "fileId": "a9WDy0TJtMYaqTIyjYL4HT" }, { "__type__": "cc.PrefabInfo", @@ -2681,7 +2681,7 @@ "asset": { "__id__": 0 }, - "fileId": "deMqhzXhdMpbLDONULGEXb", + "fileId": "40Z0QyzudA2YhGudKc0zbT", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2936,7 +2936,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "28QjBMra1E8oOx3YxHVAsY" + "fileId": "9cYV5sngFGIZam4mGajKVP" }, { "__type__": "cc.PrefabInfo", @@ -2946,7 +2946,7 @@ "asset": { "__id__": 0 }, - "fileId": "79Rm0zYp1Cd4O+Fo+vtVIg", + "fileId": "03aZwQG9FKIo6Tfqkuoxyo", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2977,7 +2977,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "e2vy0k+LlL0pu8L9IN3N/O" + "fileId": "cdsBTvRDFKUo84OuST/1ZV" }, { "__type__": "cc.PrefabInfo", @@ -2987,7 +2987,7 @@ "asset": { "__id__": 0 }, - "fileId": "30UEO2LdxC0a1Or4dtoFhR", + "fileId": "68y/4ZP6BPHpbxW97EwgIr", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3018,7 +3018,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "f6PX4nBu5FT60pcLdDYyv0" + "fileId": "c9CCFKX0BNLZHjxGOZL2Az" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3042,7 +3042,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "cdRox5nNtPh5imhs9cOzIH" + "fileId": "49I9PYdxBNprWjnVvq2h2O" }, { "__type__": "cc.PrefabInfo", @@ -3052,7 +3052,7 @@ "asset": { "__id__": 0 }, - "fileId": "64xz/FnRFA/4WvmRc4ziVr", + "fileId": "fdKe+v6ZpA/76kgyKPX9eS", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3235,7 +3235,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "21kux5xyxFY4VIx+7ol87s" + "fileId": "71dmr1wHlB3qhlCX/ksbVV" }, { "__type__": "cc.PrefabInfo", @@ -3245,7 +3245,7 @@ "asset": { "__id__": 0 }, - "fileId": "e1Bh1mpvdF6aS2r6ylHOmd", + "fileId": "cahZw/pvNP0o7NVNDE/Yfc", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3276,7 +3276,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "98cMScq+lJ4pMbRDhX47pr" + "fileId": "259hWVLadOxbkMt1t0Bbzo" }, { "__type__": "cc.PrefabInfo", @@ -3286,7 +3286,7 @@ "asset": { "__id__": 0 }, - "fileId": "35Mbd39ixA/aC5viXMJaBd", + "fileId": "9bnDTw3NNFIbfvztJT2jxw", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3317,7 +3317,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "9c90nak4NIA5bNH2Flhisq" + "fileId": "82fdUQbm1AZZBh8a5tlsUR" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3341,7 +3341,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "c11QiBKctFzYVO3veYwijJ" + "fileId": "2d1eQ27I1Jxpjla4gvAvPg" }, { "__type__": "cc.PrefabInfo", @@ -3351,7 +3351,7 @@ "asset": { "__id__": 0 }, - "fileId": "d5t0touxtJTawDSW47a9SU", + "fileId": "48xUkwGIdIUL2EzvgDfxry", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3534,7 +3534,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "a5CLzQdilOLJ0l1mKtCbZD" + "fileId": "44thcxoxxLEKnw8As54cYT" }, { "__type__": "cc.PrefabInfo", @@ -3544,7 +3544,7 @@ "asset": { "__id__": 0 }, - "fileId": "7fp5y91r1J06Icj5seUhqZ", + "fileId": "1bJ2na6jNJE54jakUVdQFI", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3575,7 +3575,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "31o0LiJ2lNCoc7HwIt/Haj" + "fileId": "5aFvDhNNZBXr4kExyFdJpn" }, { "__type__": "cc.PrefabInfo", @@ -3585,7 +3585,7 @@ "asset": { "__id__": 0 }, - "fileId": "4fJ/3MuIpCkaML6EFQCp+T", + "fileId": "46AmOZiQRM3a8POO5b0z/g", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3616,7 +3616,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "22e2MDrSpParZA9XvTRMuP" + "fileId": "dfHeLE2tFPGrTEJ+P0mGlo" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3640,7 +3640,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "8a9bsMfA5HULzkt/YhSWkN" + "fileId": "113PDd53JOJpvUgPz13yWG" }, { "__type__": "cc.PrefabInfo", @@ -3650,7 +3650,7 @@ "asset": { "__id__": 0 }, - "fileId": "94npKPFqNGJZBMqNmBN4M/", + "fileId": "ecQfQ+yMhNgrDaSDdfR6sz", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3833,7 +3833,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "eaa2YGfyhFg6SHMmzDuz03" + "fileId": "6dGstJOPFESLZvu69RjtOJ" }, { "__type__": "cc.PrefabInfo", @@ -3843,7 +3843,7 @@ "asset": { "__id__": 0 }, - "fileId": "b1da+GgONGzJtHYaOBmwc7", + "fileId": "f8xxn6OgtFH60kiVczW1eU", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3874,7 +3874,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "99sjQrwEBJzqpt5vsNNEUb" + "fileId": "45AwAKL3BO5YD7tHW/VgM7" }, { "__type__": "cc.PrefabInfo", @@ -3884,7 +3884,7 @@ "asset": { "__id__": 0 }, - "fileId": "aeARb5mpVOgrdpysyK2rcn", + "fileId": "f7BUjdHudDyYZ7UINMKoKc", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3915,7 +3915,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "e9OW8OLfFPwq+pwaIs73zZ" + "fileId": "13WKeeE+JM8psrlrqu6QpB" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3939,7 +3939,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "6fdq2xmpBIIJ77b0EnkWxS" + "fileId": "cauH+IahFNEbKYJWiT6ocr" }, { "__type__": "cc.PrefabInfo", @@ -3949,7 +3949,7 @@ "asset": { "__id__": 0 }, - "fileId": "19BniTWThIIJ/E1wJWmvk/", + "fileId": "19xauLs+9H3qfK1nzgsUQR", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4132,7 +4132,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "21J/SNTDtCnqpvEqzPGI1q" + "fileId": "e3Us8BMtBKy76XAQllibUb" }, { "__type__": "cc.PrefabInfo", @@ -4142,7 +4142,7 @@ "asset": { "__id__": 0 }, - "fileId": "18NpMGwN9CnYPkg5Xcp3Jx", + "fileId": "b7LHECqA9AwKmVmCKLM/ec", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4173,7 +4173,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "81lPmHptFO0r7SGrgjo7Kf" + "fileId": "c0KhEsvqNGPLTkoPRY+O3g" }, { "__type__": "cc.PrefabInfo", @@ -4183,7 +4183,7 @@ "asset": { "__id__": 0 }, - "fileId": "62msTZVnhNr7oN38mn5/od", + "fileId": "6f6dQBBMtKEJLAhZOWn4HY", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4214,7 +4214,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "e4VrmUCYpBwISjlaC7bd8b" + "fileId": "91zwm+mIdC6bEB7iCCIT0l" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -4238,7 +4238,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "96qq1sm4xG+69afvsOYHqA" + "fileId": "7a9f2X4yRO1Kzke6gag6Y6" }, { "__type__": "cc.PrefabInfo", @@ -4248,7 +4248,7 @@ "asset": { "__id__": 0 }, - "fileId": "d60+Rc2ZxE97FjEloxI4Ku", + "fileId": "7fauvnczpOJLB0fWP7cUT8", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4431,7 +4431,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "8dPUbzQ7pFabjre3Ab5bU9" + "fileId": "a4l/My5ohOx4kVAQV6PCsa" }, { "__type__": "cc.PrefabInfo", @@ -4441,7 +4441,7 @@ "asset": { "__id__": 0 }, - "fileId": "004xfC7ClJDrLtS2iXPAi9", + "fileId": "658bWCsH5JsrUkHlY4G7Vk", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4472,7 +4472,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "3aihQsl85OyJrzXhZpZqnm" + "fileId": "7da5BvWLNMjJEnihlHNlzI" }, { "__type__": "cc.PrefabInfo", @@ -4482,7 +4482,7 @@ "asset": { "__id__": 0 }, - "fileId": "361i+CD2VBl6DHCfOjoRxw", + "fileId": "4a/beWF4VBxKMA0GxG2z1x", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4513,7 +4513,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "ffk3FXcRlCRKOt7lYd6cs1" + "fileId": "b9EOI59QNFeqAfAhwX6lSh" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -4537,7 +4537,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "3fyhDHaANIRb5ymtVuIfU6" + "fileId": "bcegqrxwdH1IJ7nkK+FYCR" }, { "__type__": "cc.PrefabInfo", @@ -4547,7 +4547,7 @@ "asset": { "__id__": 0 }, - "fileId": "4epRhJnHZOE7W2G+nEbYd9", + "fileId": "bd2VrTVJVIzI5LArRBeO2S", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4572,7 +4572,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "82i/tFOjhA8rl7wlbUXU3L" + "fileId": "d0F2Hj30ZErI0CKXuvziBy" }, { "__type__": "cc.UITransform", @@ -4600,7 +4600,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "d1KwtaQd1CCa4UjYgDsRFe" + "fileId": "97lBRMnQhGqpl+XgTVXu7e" }, { "__type__": "cc.Sprite", @@ -4645,7 +4645,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "0e3VJZoCROn5o1+yKyTKev" + "fileId": "26jAo/+FRNr5ErBElRxlhU" }, { "__type__": "cc.PrefabInfo", @@ -4655,7 +4655,7 @@ "asset": { "__id__": 0 }, - "fileId": "5a1LnS5VBBfIAeRHGS1Yf5", + "fileId": "5dbcBKs3dH3qvT11BxoJzR", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -6373,7 +6373,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 374.966, - "y": 180, + "y": 181.992, "z": 0 }, "_lrot": { @@ -6386,7 +6386,7 @@ "_lscale": { "__type__": "cc.Vec3", "x": 1, - "y": 1, + "y": 1.02, "z": 1 }, "_mobility": 0, @@ -6423,7 +6423,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 10, + "y": 0, "z": 0 }, "_lrot": { @@ -6464,12 +6464,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 424.29998779296875, - "height": 883.6199951171875 + "height": 900 }, "_anchorPoint": { "__type__": "cc.Vec2", - "x": 0.48880509041561016, - "y": 0.5047305320147569 + "x": 0.5, + "y": 0.5 }, "_id": "" }, @@ -6550,7 +6550,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 330, - "height": 870 + "height": 900 }, "_anchorPoint": { "__type__": "cc.Vec2", diff --git a/assets/Game/scripts/game/FreeSpinEnter.ts b/assets/Game/scripts/game/FreeSpinEnter.ts index 14d3b63..e957cae 100644 --- a/assets/Game/scripts/game/FreeSpinEnter.ts +++ b/assets/Game/scripts/game/FreeSpinEnter.ts @@ -14,6 +14,8 @@ export class FreeSpinEnter extends Component { freeSpinEnterSpine: sp.Skeleton | null = null; Node_1: Node | null = null; + numNode: Node | null = null; + contentNode: Node | null = null; freeSpinEnterTitleSp: Sprite | null = null; freeSpinEnterContentSp: Sprite | null = null; @@ -29,14 +31,14 @@ export class FreeSpinEnter extends Component { this.freeSpinEnterUI = NodePoolManager.instance.getNodeFromPoolStatic('freeSpinEnter', this.freeSpinEnterPre); this.freeSpinEnterSpine = this.freeSpinEnterUI.getChildByName('spine').getComponent(sp.Skeleton); this.Node_1 = this.freeSpinEnterSpine.node.getChildByName('Node'); - let numNode = this.Node_1.getChildByName('NumNode'); - this.NumNodeOpacityCom = numNode.getComponent(UIOpacity); + this.numNode = this.Node_1.getChildByName('NumNode'); + this.NumNodeOpacityCom = this.numNode.getComponent(UIOpacity); this.NumNodeOpacityCom.opacity = 255; Tween.stopAllByTarget(this.NumNodeOpacityCom.node); - this.freeCountLabel = numNode.getChildByName('Label').getComponent(Label); + this.freeCountLabel = this.numNode.getChildByName('Label').getComponent(Label); - let contentNode = this.Node_1.getChildByName('ContentNode'); - this.freeSpinEnterContentSp = contentNode.getChildByName('SpriteCONTENT').getComponent(Sprite); + this.contentNode = this.Node_1.getChildByName('ContentNode'); + this.contentNode.getComponent(UIOpacity).opacity = 255 this.btnNode = this.Node_1.getChildByName('BtnNode'); this.btn = this.btnNode.getChildByName('BtnStart').getComponent(Button); @@ -54,24 +56,36 @@ export class FreeSpinEnter extends Component { playAnimation() { this.freeSpinEnterSpine.clearTracks(); this.freeSpinEnterSpine.setAnimation(0, 'in', false); - this.Node_1.getComponent(UIOpacity).opacity = 0; + this.contentNode.getComponent(UIOpacity).opacity = 0; + this.NumNodeOpacityCom.opacity = 0; this.scheduleOnce(() => { - tween(this.Node_1.getComponent(UIOpacity)) + tween(this.NumNodeOpacityCom) .to(0.2, { opacity: 255 }) .start(); - tween(this.Node_1) + tween(this.numNode) + .set({ scale: v3(0.5, 0.5, 0.5) }) + .to(0.2, { scale: v3(1, 1, 1) }) + .call(() => { + this.btnNode.active = true; + }) + .start(); + + tween(this.contentNode.getComponent(UIOpacity)) + .to(0.2, { opacity: 255 }) + .start(); + + tween(this.contentNode) .set({ scale: v3(0.5, 0.5, 0.5) }) .to(0.2, { scale: v3(1, 1, 1) }) .start(); - }, 0.8) + }, 0.2) this.freeSpinEnterSpine.setCompleteListener(() => { this.freeSpinEnterSpine.setAnimation(0, 'loop', true); - this.btnNode.active = true; this.scheduleOnce(() => { this.onClose(false); }, 5) @@ -98,7 +112,7 @@ export class FreeSpinEnter extends Component { fadeOutScoreLabel(delay: number, duration: number) { // 先停止可能正在进行的动画 - Tween.stopAllByTarget(this.NumNodeOpacityCom.node); + Tween.stopAllByTarget(this.numNode); // 确保标签是可见的 this.NumNodeOpacityCom.opacity = 255; @@ -109,6 +123,18 @@ export class FreeSpinEnter extends Component { .to(duration, { opacity: 0 }) .start(); + // 先停止可能正在进行的动画 + Tween.stopAllByTarget(this.contentNode); + + // 确保标签是可见的 + this.contentNode.getComponent(UIOpacity).opacity = 255; + + // 创建并执行渐隐动画 + tween(this.contentNode.getComponent(UIOpacity)) + .delay(delay) + .to(duration, { opacity: 0 }) + .start(); + } }