From 70a7c25d996b81155691cd506e0d1e9bcfcfb3a7 Mon Sep 17 00:00:00 2001 From: richarjiang Date: Tue, 30 Sep 2025 09:31:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(scene):=20=E9=87=8D=E6=9E=84=E5=BD=B1?= =?UTF-8?q?=E5=AD=90=E8=8A=82=E7=82=B9=E7=BB=93=E6=9E=84=E5=B9=B6=E7=AE=80?= =?UTF-8?q?=E5=8C=96Shadow2D=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除动态创建影子节点的逻辑,改为在场景中预置Shadow节点 - 简化Shadow2D组件,移除target绑定和动态更新逻辑 - 统一所有影子节点的命名和结构,统一使用Shadow名称 - 调整影子节点位置,统一放在角色节点下作为子节点 - 移除所有动态影子参数配置,使用固定椭圆参数绘制影子 --- assets/scenes/main.scene | 2652 ++++++++++++++++++------------------ assets/scripts/Shadow2D.ts | 60 +- 2 files changed, 1299 insertions(+), 1413 deletions(-) diff --git a/assets/scenes/main.scene b/assets/scenes/main.scene index df3567f..4eabe68 100644 --- a/assets/scenes/main.scene +++ b/assets/scenes/main.scene @@ -69,94 +69,61 @@ "__id__": 3 }, { - "__id__": 35 + "__id__": 38 }, { - "__id__": 45 - }, - { - "__id__": 64 + "__id__": 48 }, { "__id__": 67 }, { - "__id__": 81 + "__id__": 70 }, { - "__id__": 92 + "__id__": 84 }, { - "__id__": 103 + "__id__": 98 }, { - "__id__": 114 + "__id__": 112 }, { - "__id__": 125 + "__id__": 126 }, { - "__id__": 136 + "__id__": 140 }, { - "__id__": 147 + "__id__": 154 }, { - "__id__": 158 + "__id__": 168 }, { - "__id__": 169 - }, - { - "__id__": 180 - }, - { - "__id__": 6 - }, - { - "__id__": 49 - }, - { - "__id__": 53 - }, - { - "__id__": 62 - }, - { - "__id__": 191 - }, - { - "__id__": 193 + "__id__": 182 }, { "__id__": 196 }, { - "__id__": 199 + "__id__": 210 }, { - "__id__": 202 + "__id__": 6 }, { - "__id__": 205 + "__id__": 52 }, { - "__id__": 208 + "__id__": 56 }, { - "__id__": 211 + "__id__": 65 }, { - "__id__": 214 - }, - { - "__id__": 217 - }, - { - "__id__": 220 - }, - { - "__id__": 223 + "__id__": 224 }, { "__id__": 226 @@ -165,7 +132,7 @@ "__id__": 230 }, { - "__id__": 56 + "__id__": 59 } ], "_active": true, @@ -174,7 +141,7 @@ "__id__": 233 }, { - "__id__": 48 + "__id__": 51 }, { "__id__": 234 @@ -344,25 +311,28 @@ "__id__": 7 }, { - "__id__": 11 + "__id__": 10 }, { "__id__": 14 }, { - "__id__": 18 + "__id__": 17 + }, + { + "__id__": 21 } ], "_active": true, "_components": [ { - "__id__": 32 + "__id__": 35 }, { - "__id__": 33 + "__id__": 36 }, { - "__id__": 34 + "__id__": 37 } ], "_prefab": null, @@ -397,7 +367,7 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -411,9 +381,91 @@ }, { "__id__": 9 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 1.766, + "y": -54.829, + "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": "d3SHUP+1NP37rp4KsWk0E0" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "13Bi2J5qNC94Us0LPIQr2o" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "_id": "44RBRGWzZBxZEj00fhu/kt" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 6 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 11 }, { - "__id__": 10 + "__id__": 12 + }, + { + "__id__": 13 } ], "_prefab": null, @@ -452,7 +504,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 7 + "__id__": 10 }, "_enabled": true, "__prefab": null, @@ -474,7 +526,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 7 + "__id__": 10 }, "_enabled": true, "__prefab": null, @@ -549,7 +601,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 7 + "__id__": 10 }, "_enabled": true, "__prefab": null, @@ -594,10 +646,10 @@ "_active": true, "_components": [ { - "__id__": 12 + "__id__": 15 }, { - "__id__": 13 + "__id__": 16 } ], "_prefab": null, @@ -636,7 +688,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 11 + "__id__": 14 }, "_enabled": true, "__prefab": null, @@ -658,7 +710,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 11 + "__id__": 14 }, "_enabled": true, "__prefab": null, @@ -726,13 +778,13 @@ "_active": true, "_components": [ { - "__id__": 15 + "__id__": 18 }, { - "__id__": 16 + "__id__": 19 }, { - "__id__": 17 + "__id__": 20 } ], "_prefab": null, @@ -771,7 +823,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 14 + "__id__": 17 }, "_enabled": true, "__prefab": null, @@ -793,7 +845,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 14 + "__id__": 17 }, "_enabled": true, "__prefab": null, @@ -816,7 +868,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 14 + "__id__": 17 }, "_enabled": true, "__prefab": null, @@ -855,9 +907,6 @@ "__id__": 6 }, "_children": [ - { - "__id__": 19 - }, { "__id__": 22 }, @@ -866,12 +915,15 @@ }, { "__id__": 28 + }, + { + "__id__": 31 } ], "_active": false, "_components": [ { - "__id__": 31 + "__id__": 34 } ], "_prefab": null, @@ -910,16 +962,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 18 + "__id__": 21 }, "_children": [], "_active": true, "_components": [ { - "__id__": 20 + "__id__": 23 }, { - "__id__": 21 + "__id__": 24 } ], "_prefab": null, @@ -958,7 +1010,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 19 + "__id__": 22 }, "_enabled": true, "__prefab": null, @@ -980,7 +1032,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 19 + "__id__": 22 }, "_enabled": true, "__prefab": null, @@ -1019,16 +1071,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 18 + "__id__": 21 }, "_children": [], "_active": true, "_components": [ { - "__id__": 23 + "__id__": 26 }, { - "__id__": 24 + "__id__": 27 } ], "_prefab": null, @@ -1067,7 +1119,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 25 }, "_enabled": true, "__prefab": null, @@ -1089,7 +1141,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 22 + "__id__": 25 }, "_enabled": true, "__prefab": null, @@ -1128,16 +1180,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 18 + "__id__": 21 }, "_children": [], "_active": true, "_components": [ { - "__id__": 26 + "__id__": 29 }, { - "__id__": 27 + "__id__": 30 } ], "_prefab": null, @@ -1176,7 +1228,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 25 + "__id__": 28 }, "_enabled": true, "__prefab": null, @@ -1198,7 +1250,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 25 + "__id__": 28 }, "_enabled": true, "__prefab": null, @@ -1237,16 +1289,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 18 + "__id__": 21 }, "_children": [], "_active": true, "_components": [ { - "__id__": 29 + "__id__": 32 }, { - "__id__": 30 + "__id__": 33 } ], "_prefab": null, @@ -1285,7 +1337,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 28 + "__id__": 31 }, "_enabled": true, "__prefab": null, @@ -1307,7 +1359,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 28 + "__id__": 31 }, "_enabled": true, "__prefab": null, @@ -1346,7 +1398,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 18 + "__id__": 21 }, "_enabled": true, "__prefab": null, @@ -1450,22 +1502,22 @@ }, "_children": [ { - "__id__": 36 + "__id__": 39 }, { - "__id__": 39 + "__id__": 42 } ], "_active": true, "_components": [ { - "__id__": 42 + "__id__": 45 }, { - "__id__": 43 + "__id__": 46 }, { - "__id__": 44 + "__id__": 47 } ], "_prefab": null, @@ -1504,16 +1556,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 35 + "__id__": 38 }, "_children": [], "_active": true, "_components": [ { - "__id__": 37 + "__id__": 40 }, { - "__id__": 38 + "__id__": 41 } ], "_prefab": null, @@ -1552,7 +1604,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 36 + "__id__": 39 }, "_enabled": true, "__prefab": null, @@ -1574,7 +1626,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 36 + "__id__": 39 }, "_enabled": true, "__prefab": null, @@ -1613,16 +1665,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 35 + "__id__": 38 }, "_children": [], "_active": true, "_components": [ { - "__id__": 40 + "__id__": 43 }, { - "__id__": 41 + "__id__": 44 } ], "_prefab": null, @@ -1661,7 +1713,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 39 + "__id__": 42 }, "_enabled": true, "__prefab": null, @@ -1683,7 +1735,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 39 + "__id__": 42 }, "_enabled": true, "__prefab": null, @@ -1705,7 +1757,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 35 + "__id__": 38 }, "_enabled": true, "__prefab": null, @@ -1727,7 +1779,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 35 + "__id__": 38 }, "_enabled": true, "__prefab": null, @@ -1745,12 +1797,12 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 35 + "__id__": 38 }, "_enabled": true, "__prefab": null, "tiledMap": { - "__id__": 43 + "__id__": 46 }, "walkableLayerName": "WalkableLayer", "tileSize": 32, @@ -1768,10 +1820,10 @@ "_active": true, "_components": [ { - "__id__": 46 + "__id__": 49 }, { - "__id__": 47 + "__id__": 50 } ], "_prefab": null, @@ -1810,7 +1862,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 45 + "__id__": 48 }, "_enabled": true, "__prefab": null, @@ -1832,33 +1884,33 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 45 + "__id__": 48 }, "_enabled": true, "__prefab": null, "canvas": { - "__id__": 48 + "__id__": 51 }, "player": { "__id__": 6 }, "bonus": { - "__id__": 49 + "__id__": 52 }, "bonusWuqi": { - "__id__": 53 + "__id__": 56 }, "failedDialog": { - "__id__": 56 + "__id__": 59 }, "camera": { "__id__": 4 }, "pathfinder": { - "__id__": 44 + "__id__": 47 }, "attackAudio": { - "__id__": 62 + "__id__": 65 }, "moveSpeed": 300, "mapWidth": 1080, @@ -1893,13 +1945,13 @@ "_active": false, "_components": [ { - "__id__": 50 + "__id__": 53 }, { - "__id__": 51 + "__id__": 54 }, { - "__id__": 52 + "__id__": 55 } ], "_prefab": null, @@ -1938,7 +1990,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 49 + "__id__": 52 }, "_enabled": true, "__prefab": null, @@ -1960,7 +2012,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 49 + "__id__": 52 }, "_enabled": true, "__prefab": null, @@ -1999,7 +2051,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 49 + "__id__": 52 }, "_enabled": true, "__prefab": null, @@ -2028,10 +2080,10 @@ "_active": false, "_components": [ { - "__id__": 54 + "__id__": 57 }, { - "__id__": 55 + "__id__": 58 } ], "_prefab": null, @@ -2070,7 +2122,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 53 + "__id__": 56 }, "_enabled": true, "__prefab": null, @@ -2092,7 +2144,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 53 + "__id__": 56 }, "_enabled": true, "__prefab": null, @@ -2135,16 +2187,16 @@ }, "_children": [ { - "__id__": 57 + "__id__": 60 } ], "_active": false, "_components": [ { - "__id__": 60 + "__id__": 63 }, { - "__id__": 61 + "__id__": 64 } ], "_prefab": null, @@ -2183,16 +2235,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 56 + "__id__": 59 }, "_children": [], "_active": true, "_components": [ { - "__id__": 58 + "__id__": 61 }, { - "__id__": 59 + "__id__": 62 } ], "_prefab": null, @@ -2231,7 +2283,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 57 + "__id__": 60 }, "_enabled": true, "__prefab": null, @@ -2253,7 +2305,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 57 + "__id__": 60 }, "_enabled": true, "__prefab": null, @@ -2295,7 +2347,7 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 57 + "__id__": 60 }, "_id": "03MgpTX9FNJZPeHpEnZWN/" }, @@ -2305,7 +2357,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 56 + "__id__": 59 }, "_enabled": true, "__prefab": null, @@ -2327,7 +2379,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 56 + "__id__": 59 }, "_enabled": true, "__prefab": null, @@ -2372,7 +2424,7 @@ "_active": true, "_components": [ { - "__id__": 63 + "__id__": 66 } ], "_prefab": null, @@ -2411,7 +2463,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 62 + "__id__": 65 }, "_enabled": true, "__prefab": null, @@ -2436,10 +2488,10 @@ "_active": true, "_components": [ { - "__id__": 65 + "__id__": 68 }, { - "__id__": 66 + "__id__": 69 } ], "_prefab": null, @@ -2478,7 +2530,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 64 + "__id__": 67 }, "_enabled": true, "__prefab": null, @@ -2500,12 +2552,12 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 64 + "__id__": 67 }, "_enabled": true, "__prefab": null, "tiledMap": { - "__id__": 43 + "__id__": 46 }, "playerNode": { "__id__": 6 @@ -2521,9 +2573,6 @@ "__id__": 2 }, "_children": [ - { - "__id__": 68 - }, { "__id__": 71 }, @@ -2532,12 +2581,15 @@ }, { "__id__": 77 + }, + { + "__id__": 80 } ], "_active": true, "_components": [ { - "__id__": 80 + "__id__": 83 } ], "_prefab": null, @@ -2576,16 +2628,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 67 + "__id__": 70 }, "_children": [], "_active": true, "_components": [ { - "__id__": 69 + "__id__": 72 }, { - "__id__": 70 + "__id__": 73 } ], "_prefab": null, @@ -2624,7 +2676,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 68 + "__id__": 71 }, "_enabled": true, "__prefab": null, @@ -2646,7 +2698,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 68 + "__id__": 71 }, "_enabled": true, "__prefab": null, @@ -2685,16 +2737,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 67 + "__id__": 70 }, "_children": [], "_active": true, "_components": [ { - "__id__": 72 + "__id__": 75 }, { - "__id__": 73 + "__id__": 76 } ], "_prefab": null, @@ -2733,7 +2785,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 71 + "__id__": 74 }, "_enabled": true, "__prefab": null, @@ -2755,7 +2807,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 71 + "__id__": 74 }, "_enabled": true, "__prefab": null, @@ -2794,16 +2846,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 67 + "__id__": 70 }, "_children": [], "_active": true, "_components": [ { - "__id__": 75 + "__id__": 78 }, { - "__id__": 76 + "__id__": 79 } ], "_prefab": null, @@ -2842,7 +2894,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 74 + "__id__": 77 }, "_enabled": true, "__prefab": null, @@ -2864,7 +2916,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 74 + "__id__": 77 }, "_enabled": true, "__prefab": null, @@ -2903,16 +2955,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 67 + "__id__": 70 }, "_children": [], "_active": true, "_components": [ { - "__id__": 78 + "__id__": 81 }, { - "__id__": 79 + "__id__": 82 } ], "_prefab": null, @@ -2951,7 +3003,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 77 + "__id__": 80 }, "_enabled": true, "__prefab": null, @@ -2973,7 +3025,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 77 + "__id__": 80 }, "_enabled": true, "__prefab": null, @@ -3012,7 +3064,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 67 + "__id__": 70 }, "_enabled": true, "__prefab": null, @@ -3038,22 +3090,25 @@ }, "_children": [ { - "__id__": 82 + "__id__": 85 }, { - "__id__": 86 + "__id__": 88 + }, + { + "__id__": 92 } ], "_active": true, "_components": [ { - "__id__": 89 + "__id__": 95 }, { - "__id__": 90 + "__id__": 96 }, { - "__id__": 91 + "__id__": 97 } ], "_prefab": null, @@ -3088,23 +3143,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 81 + "__id__": 84 }, "_children": [], "_active": true, "_components": [ { - "__id__": 83 + "__id__": 86 }, { - "__id__": 84 + "__id__": 87 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 4.831, + "y": -62.026, + "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": "b7roqNB8xKOpUcXBq2cPTn" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 85 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "17CkoQ5i5JSa4MscYMKd4v" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 85 + }, + "_enabled": true, + "__prefab": null, + "_id": "05KTlBsydGXLc8Lc++Px3B" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 84 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 89 }, { - "__id__": 85 + "__id__": 90 + }, + { + "__id__": 91 } ], "_prefab": null, @@ -3143,7 +3280,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 82 + "__id__": 88 }, "_enabled": true, "__prefab": null, @@ -3165,7 +3302,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 82 + "__id__": 88 }, "_enabled": true, "__prefab": null, @@ -3204,7 +3341,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 82 + "__id__": 88 }, "_enabled": true, "__prefab": null, @@ -3235,16 +3372,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 81 + "__id__": 84 }, "_children": [], "_active": true, "_components": [ { - "__id__": 87 + "__id__": 93 }, { - "__id__": 88 + "__id__": 94 } ], "_prefab": null, @@ -3283,7 +3420,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 86 + "__id__": 92 }, "_enabled": true, "__prefab": null, @@ -3305,7 +3442,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 86 + "__id__": 92 }, "_enabled": true, "__prefab": null, @@ -3367,7 +3504,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 81 + "__id__": 84 }, "_enabled": true, "__prefab": null, @@ -3389,7 +3526,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 81 + "__id__": 84 }, "_enabled": true, "__prefab": null, @@ -3417,7 +3554,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 81 + "__id__": 84 }, "_enabled": true, "__prefab": null, @@ -3449,22 +3586,25 @@ }, "_children": [ { - "__id__": 93 + "__id__": 99 }, { - "__id__": 97 + "__id__": 102 + }, + { + "__id__": 106 } ], "_active": true, "_components": [ { - "__id__": 100 + "__id__": 109 }, { - "__id__": 101 + "__id__": 110 }, { - "__id__": 102 + "__id__": 111 } ], "_prefab": null, @@ -3499,23 +3639,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 92 + "__id__": 98 }, "_children": [], "_active": true, "_components": [ { - "__id__": 94 + "__id__": 100 }, { - "__id__": 95 + "__id__": 101 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -13.818, + "y": -65.01, + "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": "a0pgjDsmBJb7xhH94XHY13" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 99 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "e2UrRcgRxJSLO8bdpk8Rjd" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 99 + }, + "_enabled": true, + "__prefab": null, + "_id": "64ZC2ufx9CTaYzOgLjej1h" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 98 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 103 }, { - "__id__": 96 + "__id__": 104 + }, + { + "__id__": 105 } ], "_prefab": null, @@ -3554,7 +3776,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 93 + "__id__": 102 }, "_enabled": true, "__prefab": null, @@ -3576,7 +3798,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 93 + "__id__": 102 }, "_enabled": true, "__prefab": null, @@ -3615,7 +3837,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 93 + "__id__": 102 }, "_enabled": true, "__prefab": null, @@ -3646,16 +3868,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 92 + "__id__": 98 }, "_children": [], "_active": true, "_components": [ { - "__id__": 98 + "__id__": 107 }, { - "__id__": 99 + "__id__": 108 } ], "_prefab": null, @@ -3694,7 +3916,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 106 }, "_enabled": true, "__prefab": null, @@ -3716,7 +3938,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 106 }, "_enabled": true, "__prefab": null, @@ -3778,7 +4000,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 92 + "__id__": 98 }, "_enabled": true, "__prefab": null, @@ -3800,7 +4022,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 92 + "__id__": 98 }, "_enabled": true, "__prefab": null, @@ -3828,7 +4050,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 92 + "__id__": 98 }, "_enabled": true, "__prefab": null, @@ -3860,22 +4082,25 @@ }, "_children": [ { - "__id__": 104 + "__id__": 113 }, { - "__id__": 108 + "__id__": 116 + }, + { + "__id__": 120 } ], "_active": true, "_components": [ { - "__id__": 111 + "__id__": 123 }, { - "__id__": 112 + "__id__": 124 }, { - "__id__": 113 + "__id__": 125 } ], "_prefab": null, @@ -3910,23 +4135,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 103 + "__id__": 112 }, "_children": [], "_active": true, "_components": [ { - "__id__": 105 + "__id__": 114 }, { - "__id__": 106 + "__id__": 115 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -13.039, + "y": -50.724, + "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": "69oFnP9G1MiZ9urQeZHMgV" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 113 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "0alRB0EmNGzrT1LkjJPWAc" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 113 + }, + "_enabled": true, + "__prefab": null, + "_id": "caTL4s74pJT5f8ylv281Ho" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 112 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 117 }, { - "__id__": 107 + "__id__": 118 + }, + { + "__id__": 119 } ], "_prefab": null, @@ -3965,7 +4272,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 104 + "__id__": 116 }, "_enabled": true, "__prefab": null, @@ -3987,7 +4294,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 104 + "__id__": 116 }, "_enabled": true, "__prefab": null, @@ -4026,7 +4333,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 104 + "__id__": 116 }, "_enabled": true, "__prefab": null, @@ -4057,16 +4364,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 103 + "__id__": 112 }, "_children": [], "_active": true, "_components": [ { - "__id__": 109 + "__id__": 121 }, { - "__id__": 110 + "__id__": 122 } ], "_prefab": null, @@ -4105,7 +4412,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 108 + "__id__": 120 }, "_enabled": true, "__prefab": null, @@ -4127,7 +4434,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 108 + "__id__": 120 }, "_enabled": true, "__prefab": null, @@ -4189,7 +4496,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 103 + "__id__": 112 }, "_enabled": true, "__prefab": null, @@ -4211,7 +4518,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 103 + "__id__": 112 }, "_enabled": true, "__prefab": null, @@ -4239,7 +4546,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 103 + "__id__": 112 }, "_enabled": true, "__prefab": null, @@ -4271,22 +4578,25 @@ }, "_children": [ { - "__id__": 115 + "__id__": 127 }, { - "__id__": 119 + "__id__": 130 + }, + { + "__id__": 134 } ], "_active": true, "_components": [ { - "__id__": 122 + "__id__": 137 }, { - "__id__": 123 + "__id__": 138 }, { - "__id__": 124 + "__id__": 139 } ], "_prefab": null, @@ -4321,23 +4631,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 114 + "__id__": 126 }, "_children": [], "_active": true, "_components": [ { - "__id__": 116 + "__id__": 128 }, { - "__id__": 117 + "__id__": 129 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 3.585, + "y": -53.062, + "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": "e8//EMolpBaasP9MYocOJl" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 127 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "e3FBoZeG9Ci5BxN9EA8hBq" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 127 + }, + "_enabled": true, + "__prefab": null, + "_id": "b2TXdNUxZEgbPfpAOyCWjM" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 126 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 131 }, { - "__id__": 118 + "__id__": 132 + }, + { + "__id__": 133 } ], "_prefab": null, @@ -4376,7 +4768,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 115 + "__id__": 130 }, "_enabled": true, "__prefab": null, @@ -4398,7 +4790,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 115 + "__id__": 130 }, "_enabled": true, "__prefab": null, @@ -4437,7 +4829,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 115 + "__id__": 130 }, "_enabled": true, "__prefab": null, @@ -4468,16 +4860,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 114 + "__id__": 126 }, "_children": [], "_active": true, "_components": [ { - "__id__": 120 + "__id__": 135 }, { - "__id__": 121 + "__id__": 136 } ], "_prefab": null, @@ -4516,7 +4908,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 119 + "__id__": 134 }, "_enabled": true, "__prefab": null, @@ -4538,7 +4930,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 119 + "__id__": 134 }, "_enabled": true, "__prefab": null, @@ -4600,7 +4992,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 114 + "__id__": 126 }, "_enabled": true, "__prefab": null, @@ -4622,7 +5014,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 114 + "__id__": 126 }, "_enabled": true, "__prefab": null, @@ -4650,7 +5042,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 114 + "__id__": 126 }, "_enabled": true, "__prefab": null, @@ -4682,22 +5074,25 @@ }, "_children": [ { - "__id__": 126 + "__id__": 141 }, { - "__id__": 130 + "__id__": 144 + }, + { + "__id__": 148 } ], "_active": true, "_components": [ { - "__id__": 133 + "__id__": 151 }, { - "__id__": 134 + "__id__": 152 }, { - "__id__": 135 + "__id__": 153 } ], "_prefab": null, @@ -4732,23 +5127,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 125 + "__id__": 140 }, "_children": [], "_active": true, "_components": [ { - "__id__": 127 + "__id__": 142 }, { - "__id__": 128 + "__id__": 143 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 4.104, + "y": -48.127, + "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": "70DSeqFxFPE68jcaDDqsZi" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 141 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "e9reGNVrJD7qxfQvrTM7xN" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 141 + }, + "_enabled": true, + "__prefab": null, + "_id": "58d9EkA5JDColFeWg7kEbk" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 140 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 145 }, { - "__id__": 129 + "__id__": 146 + }, + { + "__id__": 147 } ], "_prefab": null, @@ -4787,7 +5264,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 126 + "__id__": 144 }, "_enabled": true, "__prefab": null, @@ -4809,7 +5286,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 126 + "__id__": 144 }, "_enabled": true, "__prefab": null, @@ -4848,7 +5325,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 126 + "__id__": 144 }, "_enabled": true, "__prefab": null, @@ -4879,16 +5356,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 125 + "__id__": 140 }, "_children": [], "_active": true, "_components": [ { - "__id__": 131 + "__id__": 149 }, { - "__id__": 132 + "__id__": 150 } ], "_prefab": null, @@ -4927,7 +5404,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 130 + "__id__": 148 }, "_enabled": true, "__prefab": null, @@ -4949,7 +5426,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 130 + "__id__": 148 }, "_enabled": true, "__prefab": null, @@ -5011,7 +5488,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 125 + "__id__": 140 }, "_enabled": true, "__prefab": null, @@ -5033,7 +5510,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 125 + "__id__": 140 }, "_enabled": true, "__prefab": null, @@ -5061,7 +5538,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 125 + "__id__": 140 }, "_enabled": true, "__prefab": null, @@ -5093,22 +5570,25 @@ }, "_children": [ { - "__id__": 137 + "__id__": 155 }, { - "__id__": 141 + "__id__": 158 + }, + { + "__id__": 162 } ], "_active": true, "_components": [ { - "__id__": 144 + "__id__": 165 }, { - "__id__": 145 + "__id__": 166 }, { - "__id__": 146 + "__id__": 167 } ], "_prefab": null, @@ -5143,23 +5623,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 136 + "__id__": 154 }, "_children": [], "_active": true, "_components": [ { - "__id__": 138 + "__id__": 156 }, { - "__id__": 139 + "__id__": 157 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 1.766, + "y": -40.854, + "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": "57lQUWCQ1K4qSwPqf6U+XN" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 155 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "37Qz8eTXlHM6wNPlGKzLoh" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 155 + }, + "_enabled": true, + "__prefab": null, + "_id": "b0dimYk/hMkK/ApKTArlPF" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 154 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 159 }, { - "__id__": 140 + "__id__": 160 + }, + { + "__id__": 161 } ], "_prefab": null, @@ -5198,7 +5760,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 137 + "__id__": 158 }, "_enabled": true, "__prefab": null, @@ -5220,7 +5782,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 137 + "__id__": 158 }, "_enabled": true, "__prefab": null, @@ -5259,7 +5821,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 137 + "__id__": 158 }, "_enabled": true, "__prefab": null, @@ -5290,16 +5852,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 136 + "__id__": 154 }, "_children": [], "_active": true, "_components": [ { - "__id__": 142 + "__id__": 163 }, { - "__id__": 143 + "__id__": 164 } ], "_prefab": null, @@ -5338,7 +5900,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 141 + "__id__": 162 }, "_enabled": true, "__prefab": null, @@ -5360,7 +5922,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 141 + "__id__": 162 }, "_enabled": true, "__prefab": null, @@ -5422,7 +5984,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 136 + "__id__": 154 }, "_enabled": true, "__prefab": null, @@ -5444,7 +6006,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 136 + "__id__": 154 }, "_enabled": true, "__prefab": null, @@ -5472,7 +6034,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 136 + "__id__": 154 }, "_enabled": true, "__prefab": null, @@ -5504,22 +6066,25 @@ }, "_children": [ { - "__id__": 148 + "__id__": 169 }, { - "__id__": 152 + "__id__": 172 + }, + { + "__id__": 176 } ], "_active": true, "_components": [ { - "__id__": 155 + "__id__": 179 }, { - "__id__": 156 + "__id__": 180 }, { - "__id__": 157 + "__id__": 181 } ], "_prefab": null, @@ -5554,23 +6119,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 147 + "__id__": 168 }, "_children": [], "_active": true, "_components": [ { - "__id__": 149 + "__id__": 170 }, { - "__id__": 150 + "__id__": 171 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 3.065, + "y": -37.737, + "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": "8aL5ybSLhGhqEC70u79rUE" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 169 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "b0WxKSjglPdJWyaqarGu5N" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 169 + }, + "_enabled": true, + "__prefab": null, + "_id": "904QONUYpMh5/ppr/Jq70N" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 168 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 173 }, { - "__id__": 151 + "__id__": 174 + }, + { + "__id__": 175 } ], "_prefab": null, @@ -5609,7 +6256,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 148 + "__id__": 172 }, "_enabled": true, "__prefab": null, @@ -5631,7 +6278,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 148 + "__id__": 172 }, "_enabled": true, "__prefab": null, @@ -5670,7 +6317,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 148 + "__id__": 172 }, "_enabled": true, "__prefab": null, @@ -5701,16 +6348,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 147 + "__id__": 168 }, "_children": [], "_active": true, "_components": [ { - "__id__": 153 + "__id__": 177 }, { - "__id__": 154 + "__id__": 178 } ], "_prefab": null, @@ -5749,7 +6396,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 152 + "__id__": 176 }, "_enabled": true, "__prefab": null, @@ -5771,7 +6418,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 152 + "__id__": 176 }, "_enabled": true, "__prefab": null, @@ -5833,7 +6480,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 147 + "__id__": 168 }, "_enabled": true, "__prefab": null, @@ -5855,7 +6502,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 147 + "__id__": 168 }, "_enabled": true, "__prefab": null, @@ -5883,7 +6530,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 147 + "__id__": 168 }, "_enabled": true, "__prefab": null, @@ -5915,22 +6562,25 @@ }, "_children": [ { - "__id__": 159 + "__id__": 183 }, { - "__id__": 163 + "__id__": 186 + }, + { + "__id__": 190 } ], "_active": true, "_components": [ { - "__id__": 166 + "__id__": 193 }, { - "__id__": 167 + "__id__": 194 }, { - "__id__": 168 + "__id__": 195 } ], "_prefab": null, @@ -5965,23 +6615,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 158 + "__id__": 182 }, "_children": [], "_active": true, "_components": [ { - "__id__": 160 + "__id__": 184 }, { - "__id__": 161 + "__id__": 185 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 1.766, + "y": -54.36, + "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": "8c2Lwg8MhLrKC68/JX+Jk7" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 183 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "91/1jLNQNK947REXv03He2" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 183 + }, + "_enabled": true, + "__prefab": null, + "_id": "4fiko07QtP7K7RQnLgHwce" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 182 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 187 }, { - "__id__": 162 + "__id__": 188 + }, + { + "__id__": 189 } ], "_prefab": null, @@ -6020,7 +6752,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 159 + "__id__": 186 }, "_enabled": true, "__prefab": null, @@ -6042,7 +6774,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 159 + "__id__": 186 }, "_enabled": true, "__prefab": null, @@ -6081,7 +6813,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 159 + "__id__": 186 }, "_enabled": true, "__prefab": null, @@ -6112,16 +6844,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 158 + "__id__": 182 }, "_children": [], "_active": true, "_components": [ { - "__id__": 164 + "__id__": 191 }, { - "__id__": 165 + "__id__": 192 } ], "_prefab": null, @@ -6160,7 +6892,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 163 + "__id__": 190 }, "_enabled": true, "__prefab": null, @@ -6182,7 +6914,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 163 + "__id__": 190 }, "_enabled": true, "__prefab": null, @@ -6244,7 +6976,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 158 + "__id__": 182 }, "_enabled": true, "__prefab": null, @@ -6266,7 +6998,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 158 + "__id__": 182 }, "_enabled": true, "__prefab": null, @@ -6294,7 +7026,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 158 + "__id__": 182 }, "_enabled": true, "__prefab": null, @@ -6326,22 +7058,25 @@ }, "_children": [ { - "__id__": 170 + "__id__": 197 }, { - "__id__": 174 + "__id__": 200 + }, + { + "__id__": 204 } ], "_active": true, "_components": [ { - "__id__": 177 + "__id__": 207 }, { - "__id__": 178 + "__id__": 208 }, { - "__id__": 179 + "__id__": 209 } ], "_prefab": null, @@ -6376,23 +7111,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 169 + "__id__": 196 }, "_children": [], "_active": true, "_components": [ { - "__id__": 171 + "__id__": 198 }, { - "__id__": 172 + "__id__": 199 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 1.766, + "y": -56.698, + "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": "faTT1EwiVAn5yUV7FFtBDc" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 197 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "53UUAKIg5KS5cLKQ4X79EW" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 197 + }, + "_enabled": true, + "__prefab": null, + "_id": "0aeeOCf1VL0roYkZtpNETA" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 196 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 201 }, { - "__id__": 173 + "__id__": 202 + }, + { + "__id__": 203 } ], "_prefab": null, @@ -6431,7 +7248,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 170 + "__id__": 200 }, "_enabled": true, "__prefab": null, @@ -6453,7 +7270,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 170 + "__id__": 200 }, "_enabled": true, "__prefab": null, @@ -6492,7 +7309,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 170 + "__id__": 200 }, "_enabled": true, "__prefab": null, @@ -6523,16 +7340,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 169 + "__id__": 196 }, "_children": [], "_active": true, "_components": [ { - "__id__": 175 + "__id__": 205 }, { - "__id__": 176 + "__id__": 206 } ], "_prefab": null, @@ -6571,7 +7388,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 174 + "__id__": 204 }, "_enabled": true, "__prefab": null, @@ -6593,7 +7410,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 174 + "__id__": 204 }, "_enabled": true, "__prefab": null, @@ -6655,7 +7472,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 169 + "__id__": 196 }, "_enabled": true, "__prefab": null, @@ -6677,7 +7494,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 169 + "__id__": 196 }, "_enabled": true, "__prefab": null, @@ -6705,7 +7522,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 169 + "__id__": 196 }, "_enabled": true, "__prefab": null, @@ -6737,22 +7554,25 @@ }, "_children": [ { - "__id__": 181 + "__id__": 211 }, { - "__id__": 185 + "__id__": 214 + }, + { + "__id__": 218 } ], "_active": true, "_components": [ { - "__id__": 188 + "__id__": 221 }, { - "__id__": 189 + "__id__": 222 }, { - "__id__": 190 + "__id__": 223 } ], "_prefab": null, @@ -6787,23 +7607,105 @@ }, { "__type__": "cc.Node", - "_name": "Anim", + "_name": "Shadow", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 180 + "__id__": 210 }, "_children": [], "_active": true, "_components": [ { - "__id__": 182 + "__id__": 212 }, { - "__id__": 183 + "__id__": 213 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0.208, + "y": -65.009, + "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": "3fGIkm3gBPEqMXEWphkJUx" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 211 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "b9S99IGlNHspTspKoXHLM+" + }, + { + "__type__": "d627bjTuB1Oarms89lim9q6", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 211 + }, + "_enabled": true, + "__prefab": null, + "_id": "641eylxdNCcJuBDmSYszS3" + }, + { + "__type__": "cc.Node", + "_name": "Anim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 210 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 215 }, { - "__id__": 184 + "__id__": 216 + }, + { + "__id__": 217 } ], "_prefab": null, @@ -6842,7 +7744,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 181 + "__id__": 214 }, "_enabled": true, "__prefab": null, @@ -6864,7 +7766,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 181 + "__id__": 214 }, "_enabled": true, "__prefab": null, @@ -6903,7 +7805,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 181 + "__id__": 214 }, "_enabled": true, "__prefab": null, @@ -6934,16 +7836,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 180 + "__id__": 210 }, "_children": [], "_active": true, "_components": [ { - "__id__": 186 + "__id__": 219 }, { - "__id__": 187 + "__id__": 220 } ], "_prefab": null, @@ -6982,7 +7884,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 185 + "__id__": 218 }, "_enabled": true, "__prefab": null, @@ -7004,7 +7906,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 185 + "__id__": 218 }, "_enabled": true, "__prefab": null, @@ -7066,7 +7968,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 180 + "__id__": 210 }, "_enabled": true, "__prefab": null, @@ -7088,7 +7990,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 180 + "__id__": 210 }, "_enabled": true, "__prefab": null, @@ -7116,7 +8018,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 180 + "__id__": 210 }, "_enabled": true, "__prefab": null, @@ -7150,7 +8052,7 @@ "_active": true, "_components": [ { - "__id__": 192 + "__id__": 225 } ], "_prefab": null, @@ -7189,7 +8091,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 191 + "__id__": 224 }, "_enabled": true, "__prefab": null, @@ -7202,974 +8104,6 @@ "_volume": 1, "_id": "b6klUdp/NFF4ZPGqWCwuBG" }, - { - "__type__": "cc.Node", - "_name": "Shadow", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 194 - }, - { - "__id__": 195 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "59aoP3qqZP0rVj3jO0bUcs" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 193 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "76us9j5TJLVoGGOu3SeEUZ" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 193 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 6 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "acBHXYdhZPIoeVkoV+ydRP" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-001", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 197 - }, - { - "__id__": 198 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "b7roqNB8xKOpUcXBq2cPTn" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 196 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "17CkoQ5i5JSa4MscYMKd4v" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 196 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 81 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "05KTlBsydGXLc8Lc++Px3B" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-002", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 200 - }, - { - "__id__": 201 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "9fMERlpnxHBqx1V+IPOWVJ" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 199 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "70out6o7tJK5QlCvWQGmfD" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 199 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 92 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "1aQ3s8m0VInpc+gDgbYllh" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-003", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 203 - }, - { - "__id__": 204 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "d0Rp1JABpCwohjqMSoEDqp" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 202 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "8f8gbrW91F6rLShq4W3oW1" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 202 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 103 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "00N5Bm4zZJV4D12ZdpCrgN" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-004", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 206 - }, - { - "__id__": 207 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "350Jb3XzNGgJ0KvgUo4wH9" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 205 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "efZ0fTtbxAAYqce+Sraw0C" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 205 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 114 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "28ZJ3yxoNDTY4a4p1HSBMn" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-005", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 209 - }, - { - "__id__": 210 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "c6Hzif9RhIZbm/QEbNbNmV" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 208 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "3boAGl8R5MApIWH2m1B2wk" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 208 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 125 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "02K2tDRCVLLINGuX/hIc9S" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-006", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 212 - }, - { - "__id__": 213 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "b0brUKCeFPGZhW/P8c5440" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 211 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "c8gtBN2CdATqC5x39y0FF3" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 211 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 136 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "39iwJwaiFNYZVWUka4WNCN" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-007", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 215 - }, - { - "__id__": 216 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "e41K9VWZtMib1Wz9Ox6zpt" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 214 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "0b0t4m91hGg6KwCzZ2l4PQ" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 214 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 147 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "c8i6KXpSJFK6eE9JS/KG3E" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-008", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 218 - }, - { - "__id__": 219 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "2d2CbjBkdDJK9fCHNUevBr" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 217 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "adBHhRcNxOi7AC0i2qGtzQ" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 217 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 158 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "c8RiJR05lNmovFNOElY6Fg" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-009", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 221 - }, - { - "__id__": 222 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "930niPnWVFZKutLmKpKl+G" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 220 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "31BgNivLBPW4bLqSmU+XqM" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 220 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 169 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "7aH+CyKqdK/oGVjx5H1TNO" - }, - { - "__type__": "cc.Node", - "_name": "Shadow-010", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 224 - }, - { - "__id__": 225 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "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": "04Ibm6FrdMPIpGZZLXBE7l" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 223 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "balqXXly9OF4+YCtGJb7HD" - }, - { - "__type__": "d627bjTuB1Oarms89lim9q6", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 223 - }, - "_enabled": true, - "__prefab": null, - "target": { - "__id__": 180 - }, - "shadowWidth": 60, - "shadowHeight": 20, - "shadowAlpha": 80, - "_id": "e5TN9ghthAsIpd5RkqHqDH" - }, { "__type__": "cc.Node", "_name": "Guide", diff --git a/assets/scripts/Shadow2D.ts b/assets/scripts/Shadow2D.ts index 6ea2218..213cca9 100644 --- a/assets/scripts/Shadow2D.ts +++ b/assets/scripts/Shadow2D.ts @@ -1,60 +1,12 @@ -import { _decorator, Component, Node, Graphics, Color, UITransform } from 'cc'; -const { ccclass, property } = _decorator; +import { _decorator, Component, Graphics, Color } from 'cc'; +const { ccclass } = _decorator; @ccclass('Shadow2D') export class Shadow2D extends Component { - - @property(Node) - target: Node | null = null; // 角色节点 - - @property - shadowWidth: number = 60; - - @property - shadowHeight: number = 20; - - @property - shadowAlpha: number = 80; // 0-255 - - private shadowNode: Node | null = null; - start() { - if (!this.target) { - console.warn("Shadow2D: 未绑定角色节点 target"); - return; - } - - // 创建影子节点 - this.shadowNode = new Node("Shadow"); - let g = this.shadowNode.addComponent(Graphics); - this.target.addChild(this.shadowNode); - - // 调整大小 - let ui = this.shadowNode.addComponent(UITransform); - ui.setContentSize(this.shadowWidth, this.shadowHeight); - - // 画椭圆 - g.fillColor = new Color(0, 0, 0, this.shadowAlpha); - g.ellipse(0, 0, this.shadowWidth / 2, this.shadowHeight / 2); + let g = this.node.addComponent(Graphics); + g.fillColor = new Color(0, 0, 0, 100); // 半透明黑色 + g.ellipse(0, 0, 40, 15); // 椭圆(radiusX=40, radiusY=15) g.fill(); - - // 放到角色脚下 - this.shadowNode.setPosition(0, -this.target.getComponent(UITransform).height / 2); } - - update(dt: number) { - if (!this.shadowNode || !this.target) return; - - if (!this.target.active) { - this.shadowNode.active = false; - return; - } - - // 始终保持在角色底部(比如角色动画高度变化时也能跟随) - let ui = this.target.getComponent(UITransform); - - if (!ui) return; - - this.shadowNode.setPosition(0, -ui.height / 2 + 10); - } -} +} \ No newline at end of file