From 531343c0d78f568cbe4cf9e8b0cee2a8fea100aa Mon Sep 17 00:00:00 2001 From: pan Date: Fri, 12 Jun 2026 08:57:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(guide):=20=E6=B7=BB=E5=8A=A0=E5=BC=95?= =?UTF-8?q?=E5=AF=BC=E6=89=8B=E5=8A=BF=E5=8A=A8=E7=94=BB=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增dianji(点击)、huadong(滑动)两款手势动画资源及元数据文件 扩展GuideComp引导组件:新增CCString导入、动画名称配置属性,实现延迟加载并播放指定动画的逻辑,包含异常日志处理 更新引导预制体:将原hand节点重命名为shouzhi,添加Animation组件并绑定两款动画剪辑,调整默认配置 --- assets/resources/gui/anim/dianji.anim | 258 +++++ assets/resources/gui/anim/dianji.anim.meta | 13 + assets/resources/gui/anim/huadong.anim | 258 +++++ assets/resources/gui/anim/huadong.anim.meta | 13 + assets/resources/gui/element/guide.prefab | 64 +- assets/resources/gui/element/mission.prefab | 1146 +++++++++++++++---- assets/script/game/map/GuideComp.ts | 35 +- 7 files changed, 1547 insertions(+), 240 deletions(-) create mode 100644 assets/resources/gui/anim/dianji.anim create mode 100644 assets/resources/gui/anim/dianji.anim.meta create mode 100644 assets/resources/gui/anim/huadong.anim create mode 100644 assets/resources/gui/anim/huadong.anim.meta diff --git a/assets/resources/gui/anim/dianji.anim b/assets/resources/gui/anim/dianji.anim new file mode 100644 index 00000000..109e29be --- /dev/null +++ b/assets/resources/gui/anim/dianji.anim @@ -0,0 +1,258 @@ +[ + { + "__type__": "cc.AnimationClip", + "_name": "dianji", + "_objFlags": 0, + "__editorExtras__": { + "embeddedPlayerGroups": [] + }, + "_native": "", + "sample": 15, + "speed": 1, + "wrapMode": 2, + "enableTrsBlending": false, + "_duration": 0.6666666666666666, + "_hash": 500763545, + "_tracks": [ + { + "__id__": 1 + } + ], + "_exoticAnimation": null, + "_events": [], + "_embeddedPlayers": [], + "_additiveSettings": { + "__id__": 11 + }, + "_auxiliaryCurveEntries": [] + }, + { + "__type__": "cc.animation.VectorTrack", + "_binding": { + "__type__": "cc.animation.TrackBinding", + "path": { + "__id__": 2 + }, + "proxy": null + }, + "_channels": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + }, + { + "__id__": 9 + } + ], + "_nComponents": 3 + }, + { + "__type__": "cc.animation.TrackPath", + "_paths": [ + "position" + ] + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 4 + } + }, + { + "__type__": "cc.RealCurve", + "_times": [ + 0, + 0.3333333333333333, + 0.6666666666666666 + ], + "_values": [ + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 20.685, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + } + ], + "preExtrapolation": 1, + "postExtrapolation": 1 + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 6 + } + }, + { + "__type__": "cc.RealCurve", + "_times": [ + 0, + 0.3333333333333333, + 0.6666666666666666 + ], + "_values": [ + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": -58.235, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + } + ], + "preExtrapolation": 1, + "postExtrapolation": 1 + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 8 + } + }, + { + "__type__": "cc.RealCurve", + "_times": [ + 0, + 0.3333333333333333, + 0.6666666666666666 + ], + "_values": [ + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + } + ], + "preExtrapolation": 1, + "postExtrapolation": 1 + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 10 + } + }, + { + "__type__": "cc.RealCurve", + "_times": [], + "_values": [], + "preExtrapolation": 1, + "postExtrapolation": 1 + }, + { + "__type__": "cc.AnimationClipAdditiveSettings", + "enabled": false, + "refClip": null + } +] \ No newline at end of file diff --git a/assets/resources/gui/anim/dianji.anim.meta b/assets/resources/gui/anim/dianji.anim.meta new file mode 100644 index 00000000..94d2755f --- /dev/null +++ b/assets/resources/gui/anim/dianji.anim.meta @@ -0,0 +1,13 @@ +{ + "ver": "2.0.3", + "importer": "animation-clip", + "imported": true, + "uuid": "70fd0e99-c640-4497-b2c2-936f5179f227", + "files": [ + ".cconb" + ], + "subMetas": {}, + "userData": { + "name": "dianji" + } +} diff --git a/assets/resources/gui/anim/huadong.anim b/assets/resources/gui/anim/huadong.anim new file mode 100644 index 00000000..ee724b13 --- /dev/null +++ b/assets/resources/gui/anim/huadong.anim @@ -0,0 +1,258 @@ +[ + { + "__type__": "cc.AnimationClip", + "_name": "huadong", + "_objFlags": 0, + "__editorExtras__": { + "embeddedPlayerGroups": [] + }, + "_native": "", + "sample": 10, + "speed": 1, + "wrapMode": 2, + "enableTrsBlending": false, + "_duration": 1, + "_hash": 500763545, + "_tracks": [ + { + "__id__": 1 + } + ], + "_exoticAnimation": null, + "_events": [], + "_embeddedPlayers": [], + "_additiveSettings": { + "__id__": 11 + }, + "_auxiliaryCurveEntries": [] + }, + { + "__type__": "cc.animation.VectorTrack", + "_binding": { + "__type__": "cc.animation.TrackBinding", + "path": { + "__id__": 2 + }, + "proxy": null + }, + "_channels": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + }, + { + "__id__": 9 + } + ], + "_nComponents": 3 + }, + { + "__type__": "cc.animation.TrackPath", + "_paths": [ + "position" + ] + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 4 + } + }, + { + "__type__": "cc.RealCurve", + "_times": [ + 0, + 0.7, + 1 + ], + "_values": [ + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + } + ], + "preExtrapolation": 1, + "postExtrapolation": 1 + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 6 + } + }, + { + "__type__": "cc.RealCurve", + "_times": [ + 0, + 0.7, + 1 + ], + "_values": [ + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 213.527, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + } + ], + "preExtrapolation": 1, + "postExtrapolation": 1 + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 8 + } + }, + { + "__type__": "cc.RealCurve", + "_times": [ + 0, + 0.7, + 1 + ], + "_values": [ + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + }, + { + "__type__": "cc.RealKeyframeValue", + "interpolationMode": 0, + "tangentWeightMode": 0, + "value": 0, + "rightTangent": 0, + "rightTangentWeight": 1, + "leftTangent": 0, + "leftTangentWeight": 1, + "easingMethod": 0, + "__editorExtras__": { + "tangentMode": 0 + } + } + ], + "preExtrapolation": 1, + "postExtrapolation": 1 + }, + { + "__type__": "cc.animation.Channel", + "_curve": { + "__id__": 10 + } + }, + { + "__type__": "cc.RealCurve", + "_times": [], + "_values": [], + "preExtrapolation": 1, + "postExtrapolation": 1 + }, + { + "__type__": "cc.AnimationClipAdditiveSettings", + "enabled": false, + "refClip": null + } +] \ No newline at end of file diff --git a/assets/resources/gui/anim/huadong.anim.meta b/assets/resources/gui/anim/huadong.anim.meta new file mode 100644 index 00000000..baab3b51 --- /dev/null +++ b/assets/resources/gui/anim/huadong.anim.meta @@ -0,0 +1,13 @@ +{ + "ver": "2.0.3", + "importer": "animation-clip", + "imported": true, + "uuid": "be8b49e0-c726-4c44-823e-d50921b886d3", + "files": [ + ".cconb" + ], + "subMetas": {}, + "userData": { + "name": "huadong" + } +} diff --git a/assets/resources/gui/element/guide.prefab b/assets/resources/gui/element/guide.prefab index fc83723b..2dd88ea4 100644 --- a/assets/resources/gui/element/guide.prefab +++ b/assets/resources/gui/element/guide.prefab @@ -24,23 +24,23 @@ ], "_active": true, "_components": [ - { - "__id__": 12 - }, { "__id__": 14 }, { "__id__": 16 + }, + { + "__id__": 18 } ], "_prefab": { - "__id__": 18 + "__id__": 20 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 640, + "y": 0, "z": 0 }, "_lrot": { @@ -82,11 +82,11 @@ "_active": true, "_components": [ { - "__id__": 9 + "__id__": 11 } ], "_prefab": { - "__id__": 11 + "__id__": 13 }, "_lpos": { "__type__": "cc.Vec3", @@ -119,7 +119,7 @@ }, { "__type__": "cc.Node", - "_name": "hand", + "_name": "shouzhi", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -133,10 +133,13 @@ }, { "__id__": 6 + }, + { + "__id__": 8 } ], "_prefab": { - "__id__": 8 + "__id__": 10 }, "_lpos": { "__type__": "cc.Vec3", @@ -240,6 +243,39 @@ "__type__": "cc.CompPrefabInfo", "fileId": "e4qJ7s1yxD9JrYdfGLFkVo" }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "playOnLoad": false, + "_clips": [ + { + "__uuid__": "70fd0e99-c640-4497-b2c2-936f5179f227", + "__expectedType__": "cc.AnimationClip" + }, + { + "__uuid__": "be8b49e0-c726-4c44-823e-d50921b886d3", + "__expectedType__": "cc.AnimationClip" + } + ], + "_defaultClip": { + "__uuid__": "70fd0e99-c640-4497-b2c2-936f5179f227", + "__expectedType__": "cc.AnimationClip" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "68wJojAspAaqazqpHr1Fes" + }, { "__type__": "cc.PrefabInfo", "root": { @@ -263,7 +299,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 10 + "__id__": 12 }, "_contentSize": { "__type__": "cc.Size", @@ -304,7 +340,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 13 + "__id__": 15 }, "_contentSize": { "__type__": "cc.Size", @@ -332,7 +368,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 15 + "__id__": 17 }, "_alignFlags": 45, "_target": null, @@ -368,12 +404,13 @@ }, "_enabled": true, "__prefab": { - "__id__": 17 + "__id__": 19 }, "hand": { "__id__": 2 }, "guide_id": 0, + "animation_name": "dianji", "_id": "" }, { @@ -389,6 +426,7 @@ "__id__": 0 }, "fileId": "6dh4o/8p1Cy5An1p6o4Bc3", + "instance": null, "targetOverrides": null } ] \ No newline at end of file diff --git a/assets/resources/gui/element/mission.prefab b/assets/resources/gui/element/mission.prefab index 626e7213..4fcbd2c6 100644 --- a/assets/resources/gui/element/mission.prefab +++ b/assets/resources/gui/element/mission.prefab @@ -38,34 +38,37 @@ }, { "__id__": 1501 + }, + { + "__id__": 1536 } ], "_active": true, "_components": [ { - "__id__": 1529 + "__id__": 1569 }, { - "__id__": 1531 + "__id__": 1571 }, { - "__id__": 1533 + "__id__": 1573 }, { - "__id__": 1535 + "__id__": 1575 }, { - "__id__": 1537 + "__id__": 1577 }, { - "__id__": 1539 + "__id__": 1579 }, { - "__id__": 1609 + "__id__": 1649 } ], "_prefab": { - "__id__": 1611 + "__id__": 1651 }, "_lpos": { "__type__": "cc.Vec3", @@ -27855,26 +27858,38 @@ } ], "propertyOverrides": [ - { - "__id__": 1518 - }, { "__id__": 1520 }, - { - "__id__": 1521 - }, { "__id__": 1522 }, { "__id__": 1523 }, + { + "__id__": 1524 + }, { "__id__": 1525 }, { "__id__": 1527 + }, + { + "__id__": 1529 + }, + { + "__id__": 1531 + }, + { + "__id__": 1532 + }, + { + "__id__": 1533 + }, + { + "__id__": 1535 } ], "removedComponents": [] @@ -27910,7 +27925,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1517 + "__id__": 1519 }, "_alignFlags": 44, "_target": null, @@ -27948,14 +27963,14 @@ "_active": true, "_components": [ { - "__id__": 1514 + "__id__": 1516 }, { "__id__": 1506 } ], "_prefab": { - "__id__": 1516 + "__id__": 1518 }, "_lpos": { "__type__": "cc.Vec3", @@ -27988,7 +28003,7 @@ }, { "__type__": "cc.Node", - "_name": "hand", + "_name": "shouzhi", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -28002,15 +28017,18 @@ }, { "__id__": 1511 + }, + { + "__id__": 1513 } ], "_prefab": { - "__id__": 1513 + "__id__": 1515 }, "_lpos": { "__type__": "cc.Vec3", - "x": 0, - "y": 0, + "x": 19.673, + "y": -43.524, "z": 0 }, "_lrot": { @@ -28022,8 +28040,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.8, + "y": 0.8, "z": 1 }, "_mobility": 0, @@ -28109,6 +28127,39 @@ "__type__": "cc.CompPrefabInfo", "fileId": "e4qJ7s1yxD9JrYdfGLFkVo" }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1508 + }, + "_enabled": true, + "__prefab": { + "__id__": 1514 + }, + "playOnLoad": false, + "_clips": [ + { + "__uuid__": "70fd0e99-c640-4497-b2c2-936f5179f227", + "__expectedType__": "cc.AnimationClip" + }, + { + "__uuid__": "be8b49e0-c726-4c44-823e-d50921b886d3", + "__expectedType__": "cc.AnimationClip" + } + ], + "_defaultClip": { + "__uuid__": "70fd0e99-c640-4497-b2c2-936f5179f227", + "__expectedType__": "cc.AnimationClip" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "68wJojAspAaqazqpHr1Fes" + }, { "__type__": "cc.PrefabInfo", "root": { @@ -28132,7 +28183,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1515 + "__id__": 1517 }, "_contentSize": { "__type__": "cc.Size", @@ -28170,7 +28221,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1519 + "__id__": 1521 }, "propertyPath": [ "_name" @@ -28186,7 +28237,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1519 + "__id__": 1521 }, "propertyPath": [ "_lpos" @@ -28201,7 +28252,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1519 + "__id__": 1521 }, "propertyPath": [ "_lrot" @@ -28217,7 +28268,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1519 + "__id__": 1521 }, "propertyPath": [ "_euler" @@ -28232,7 +28283,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1524 + "__id__": 1526 }, "propertyPath": [ "_lpos" @@ -28253,7 +28304,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1526 + "__id__": 1528 }, "propertyPath": [ "_contentSize" @@ -28273,7 +28324,7 @@ { "__type__": "CCPropertyOverrideInfo", "targetInfo": { - "__id__": 1528 + "__id__": 1530 }, "propertyPath": [ "guide_id" @@ -28286,6 +28337,615 @@ "1fYnYBrbBNgoLyArRX18hs" ] }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1530 + }, + "propertyPath": [ + "animation_name" + ], + "value": "huadong" + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1526 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1534 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0.8, + "y": 0.8, + "z": 1 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "c98HTacPpLKZkCGXoKpM4T" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1534 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 19.673, + "y": -43.524, + "z": 0 + } + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_prefab": { + "__id__": 1537 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1536 + }, + "asset": { + "__uuid__": "93fda804-b794-4119-a287-952a70be15cb", + "__expectedType__": "cc.Prefab" + }, + "fileId": "6dh4o/8p1Cy5An1p6o4Bc3", + "instance": { + "__id__": 1538 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "0b8a2GBmVNzZJ4bqMgqPQs", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [ + { + "__id__": 1539 + } + ], + "propertyOverrides": [ + { + "__id__": 1555 + }, + { + "__id__": 1557 + }, + { + "__id__": 1558 + }, + { + "__id__": 1559 + }, + { + "__id__": 1560 + }, + { + "__id__": 1562 + }, + { + "__id__": 1564 + }, + { + "__id__": 1566 + }, + { + "__id__": 1567 + } + ], + "removedComponents": [] + }, + { + "__type__": "cc.MountedComponentsInfo", + "targetInfo": { + "__id__": 1540 + }, + "components": [ + { + "__id__": 1541 + } + ] + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "cbf1XjyLtM3ptfNNcea20y" + ] + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": { + "mountedRoot": { + "__id__": 1536 + } + }, + "node": { + "__id__": 1542 + }, + "_enabled": true, + "__prefab": { + "__id__": 1554 + }, + "_alignFlags": 44, + "_target": null, + "_left": 602.182, + "_right": 17.817999999999984, + "_top": 1167.142, + "_bottom": 12.857999999999947, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "hand", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1536 + }, + "_children": [ + { + "__id__": 1543 + } + ], + "_active": true, + "_components": [ + { + "__id__": 1551 + }, + { + "__id__": 1541 + } + ], + "_prefab": { + "__id__": 1553 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 292.182, + "y": -577.142, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "shouzhi", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1542 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 1544 + }, + { + "__id__": 1546 + }, + { + "__id__": 1548 + } + ], + "_prefab": { + "__id__": 1550 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 25.891, + "y": -46.633, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.7, + "y": 0.7, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1543 + }, + "_enabled": true, + "__prefab": { + "__id__": 1545 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 98, + "height": 111 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "79Vu4Cv05PnJw1LXaSE4DD" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1543 + }, + "_enabled": true, + "__prefab": { + "__id__": 1547 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@5990a", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e4qJ7s1yxD9JrYdfGLFkVo" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1543 + }, + "_enabled": true, + "__prefab": { + "__id__": 1549 + }, + "playOnLoad": false, + "_clips": [ + { + "__uuid__": "70fd0e99-c640-4497-b2c2-936f5179f227", + "__expectedType__": "cc.AnimationClip" + }, + { + "__uuid__": "be8b49e0-c726-4c44-823e-d50921b886d3", + "__expectedType__": "cc.AnimationClip" + } + ], + "_defaultClip": { + "__uuid__": "70fd0e99-c640-4497-b2c2-936f5179f227", + "__expectedType__": "cc.AnimationClip" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "68wJojAspAaqazqpHr1Fes" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c98HTacPpLKZkCGXoKpM4T", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1542 + }, + "_enabled": true, + "__prefab": { + "__id__": 1552 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8bH6M7VahGk79zZiTESQBG" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "cbf1XjyLtM3ptfNNcea20y", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "42hwV9alNOdrkj9Lck7BwK" + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1556 + }, + "propertyPath": [ + "_name" + ], + "value": "guide" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "6dh4o/8p1Cy5An1p6o4Bc3" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1556 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 640, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1556 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1556 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1561 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 292.182, + "y": -577.142, + "z": 0 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "cbf1XjyLtM3ptfNNcea20y" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1563 + }, + "propertyPath": [ + "_contentSize" + ], + "value": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "8bH6M7VahGk79zZiTESQBG" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1565 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 25.891, + "y": -46.633, + "z": 0 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "c98HTacPpLKZkCGXoKpM4T" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1565 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0.7, + "y": 0.7, + "z": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 1568 + }, + "propertyPath": [ + "guide_id" + ], + "value": 3 + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "1fYnYBrbBNgoLyArRX18hs" + ] + }, { "__type__": "cc.UITransform", "_name": "", @@ -28296,7 +28956,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1530 + "__id__": 1570 }, "_contentSize": { "__type__": "cc.Size", @@ -28324,7 +28984,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1532 + "__id__": 1572 }, "_alignFlags": 21, "_target": null, @@ -28360,7 +29020,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1534 + "__id__": 1574 }, "debugMode": false, "showMemoryPanel": true, @@ -28393,7 +29053,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1536 + "__id__": 1576 }, "_id": "" }, @@ -28411,7 +29071,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1538 + "__id__": 1578 }, "debugMode": false, "_id": "" @@ -28430,7 +29090,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1540 + "__id__": 1580 }, "cards_node": { "__id__": 130 @@ -28475,13 +29135,13 @@ "__id__": 1261 }, "skill_refresh": { - "__id__": 1541 + "__id__": 1581 }, "skill_ad_refresh": { - "__id__": 1567 + "__id__": 1607 }, "skill_refresh_num_node": { - "__id__": 1595 + "__id__": 1635 }, "_id": "" }, @@ -28495,30 +29155,30 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1542 + "__id__": 1582 }, "_children": [ { - "__id__": 1589 + "__id__": 1629 }, { - "__id__": 1595 + "__id__": 1635 } ], "_active": true, "_components": [ { - "__id__": 1601 + "__id__": 1641 }, { - "__id__": 1603 + "__id__": 1643 }, { - "__id__": 1605 + "__id__": 1645 } ], "_prefab": { - "__id__": 1608 + "__id__": 1648 }, "_lpos": { "__type__": "cc.Vec3", @@ -28555,30 +29215,30 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1543 + "__id__": 1583 }, "_children": [ { - "__id__": 1541 + "__id__": 1581 }, { - "__id__": 1567 + "__id__": 1607 } ], "_active": true, "_components": [ { - "__id__": 1582 + "__id__": 1622 }, { - "__id__": 1584 + "__id__": 1624 }, { - "__id__": 1586 + "__id__": 1626 } ], "_prefab": { - "__id__": 1588 + "__id__": 1628 }, "_lpos": { "__type__": "cc.Vec3", @@ -28619,7 +29279,7 @@ }, "_children": [ { - "__id__": 1544 + "__id__": 1584 }, { "__id__": 785 @@ -28631,26 +29291,26 @@ "__id__": 1261 }, { - "__id__": 1542 + "__id__": 1582 } ], "_active": true, "_components": [ { - "__id__": 1558 + "__id__": 1598 }, { - "__id__": 1560 + "__id__": 1600 }, { - "__id__": 1562 + "__id__": 1602 }, { - "__id__": 1564 + "__id__": 1604 } ], "_prefab": { - "__id__": 1566 + "__id__": 1606 }, "_lpos": { "__type__": "cc.Vec3", @@ -28687,24 +29347,24 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1543 + "__id__": 1583 }, "_children": [ { - "__id__": 1545 + "__id__": 1585 } ], "_active": true, "_components": [ { - "__id__": 1553 + "__id__": 1593 }, { - "__id__": 1555 + "__id__": 1595 } ], "_prefab": { - "__id__": 1557 + "__id__": 1597 }, "_lpos": { "__type__": "cc.Vec3", @@ -28741,23 +29401,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1544 + "__id__": 1584 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1546 + "__id__": 1586 }, { - "__id__": 1548 + "__id__": 1588 }, { - "__id__": 1550 + "__id__": 1590 } ], "_prefab": { - "__id__": 1552 + "__id__": 1592 }, "_lpos": { "__type__": "cc.Vec3", @@ -28794,11 +29454,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1545 + "__id__": 1585 }, "_enabled": true, "__prefab": { - "__id__": 1547 + "__id__": 1587 }, "_contentSize": { "__type__": "cc.Size", @@ -28822,11 +29482,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1545 + "__id__": 1585 }, "_enabled": true, "__prefab": { - "__id__": 1549 + "__id__": 1589 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -28870,11 +29530,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1545 + "__id__": 1585 }, "_enabled": true, "__prefab": { - "__id__": 1551 + "__id__": 1591 }, "_alignFlags": 45, "_target": null, @@ -28919,11 +29579,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1544 + "__id__": 1584 }, "_enabled": true, "__prefab": { - "__id__": 1554 + "__id__": 1594 }, "_contentSize": { "__type__": "cc.Size", @@ -28947,11 +29607,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1544 + "__id__": 1584 }, "_enabled": false, "__prefab": { - "__id__": 1556 + "__id__": 1596 }, "_alignFlags": 42, "_target": null, @@ -28996,11 +29656,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1543 + "__id__": 1583 }, "_enabled": true, "__prefab": { - "__id__": 1559 + "__id__": 1599 }, "_contentSize": { "__type__": "cc.Size", @@ -29024,11 +29684,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1543 + "__id__": 1583 }, "_enabled": true, "__prefab": { - "__id__": 1561 + "__id__": 1601 }, "_alignFlags": 42, "_target": null, @@ -29060,11 +29720,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1543 + "__id__": 1583 }, "_enabled": false, "__prefab": { - "__id__": 1563 + "__id__": 1603 }, "_resizeMode": 1, "_layoutType": 1, @@ -29098,11 +29758,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1543 + "__id__": 1583 }, "_enabled": true, "__prefab": { - "__id__": 1565 + "__id__": 1605 }, "_id": "" }, @@ -29129,27 +29789,27 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1542 + "__id__": 1582 }, "_children": [ { - "__id__": 1568 + "__id__": 1608 } ], "_active": true, "_components": [ { - "__id__": 1574 + "__id__": 1614 }, { - "__id__": 1576 + "__id__": 1616 }, { - "__id__": 1578 + "__id__": 1618 } ], "_prefab": { - "__id__": 1581 + "__id__": 1621 }, "_lpos": { "__type__": "cc.Vec3", @@ -29186,20 +29846,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1567 + "__id__": 1607 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1569 + "__id__": 1609 }, { - "__id__": 1571 + "__id__": 1611 } ], "_prefab": { - "__id__": 1573 + "__id__": 1613 }, "_lpos": { "__type__": "cc.Vec3", @@ -29236,11 +29896,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1568 + "__id__": 1608 }, "_enabled": true, "__prefab": { - "__id__": 1570 + "__id__": 1610 }, "_contentSize": { "__type__": "cc.Size", @@ -29264,11 +29924,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1568 + "__id__": 1608 }, "_enabled": true, "__prefab": { - "__id__": 1572 + "__id__": 1612 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -29345,11 +30005,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1567 + "__id__": 1607 }, "_enabled": true, "__prefab": { - "__id__": 1575 + "__id__": 1615 }, "_contentSize": { "__type__": "cc.Size", @@ -29373,11 +30033,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1567 + "__id__": 1607 }, "_enabled": true, "__prefab": { - "__id__": 1577 + "__id__": 1617 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -29421,15 +30081,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1567 + "__id__": 1607 }, "_enabled": true, "__prefab": { - "__id__": 1579 + "__id__": 1619 }, "clickEvents": [ { - "__id__": 1580 + "__id__": 1620 } ], "_interactable": true, @@ -29504,11 +30164,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1542 + "__id__": 1582 }, "_enabled": true, "__prefab": { - "__id__": 1583 + "__id__": 1623 }, "_contentSize": { "__type__": "cc.Size", @@ -29532,11 +30192,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1542 + "__id__": 1582 }, "_enabled": true, "__prefab": { - "__id__": 1585 + "__id__": 1625 }, "_resizeMode": 1, "_layoutType": 1, @@ -29570,11 +30230,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1542 + "__id__": 1582 }, "_enabled": false, "__prefab": { - "__id__": 1587 + "__id__": 1627 }, "_alignFlags": 2, "_target": null, @@ -29619,20 +30279,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1541 + "__id__": 1581 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1590 + "__id__": 1630 }, { - "__id__": 1592 + "__id__": 1632 } ], "_prefab": { - "__id__": 1594 + "__id__": 1634 }, "_lpos": { "__type__": "cc.Vec3", @@ -29669,11 +30329,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1589 + "__id__": 1629 }, "_enabled": true, "__prefab": { - "__id__": 1591 + "__id__": 1631 }, "_contentSize": { "__type__": "cc.Size", @@ -29697,11 +30357,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1589 + "__id__": 1629 }, "_enabled": true, "__prefab": { - "__id__": 1593 + "__id__": 1633 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -29778,20 +30438,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 1541 + "__id__": 1581 }, "_children": [], "_active": true, "_components": [ { - "__id__": 1596 + "__id__": 1636 }, { - "__id__": 1598 + "__id__": 1638 } ], "_prefab": { - "__id__": 1600 + "__id__": 1640 }, "_lpos": { "__type__": "cc.Vec3", @@ -29828,11 +30488,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1595 + "__id__": 1635 }, "_enabled": true, "__prefab": { - "__id__": 1597 + "__id__": 1637 }, "_contentSize": { "__type__": "cc.Size", @@ -29856,11 +30516,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1595 + "__id__": 1635 }, "_enabled": true, "__prefab": { - "__id__": 1599 + "__id__": 1639 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -29937,11 +30597,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1541 + "__id__": 1581 }, "_enabled": true, "__prefab": { - "__id__": 1602 + "__id__": 1642 }, "_contentSize": { "__type__": "cc.Size", @@ -29965,11 +30625,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1541 + "__id__": 1581 }, "_enabled": true, "__prefab": { - "__id__": 1604 + "__id__": 1644 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -30013,15 +30673,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 1541 + "__id__": 1581 }, "_enabled": true, "__prefab": { - "__id__": 1606 + "__id__": 1646 }, "clickEvents": [ { - "__id__": 1607 + "__id__": 1647 } ], "_interactable": true, @@ -30100,7 +30760,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 1610 + "__id__": 1650 }, "skill_box": { "__uuid__": "d19cde30-f5d0-47de-a0d5-3a272b696343", @@ -30123,65 +30783,71 @@ "fileId": "f7/N7i8SZFDZ/cm3Iro3X8", "instance": null, "targetOverrides": [ - { - "__id__": 1612 - }, - { - "__id__": 1615 - }, - { - "__id__": 1618 - }, - { - "__id__": 1621 - }, - { - "__id__": 1624 - }, - { - "__id__": 1627 - }, - { - "__id__": 1630 - }, - { - "__id__": 1633 - }, - { - "__id__": 1636 - }, - { - "__id__": 1639 - }, - { - "__id__": 1642 - }, - { - "__id__": 1645 - }, - { - "__id__": 1648 - }, - { - "__id__": 1650 - }, { "__id__": 1652 }, { - "__id__": 1654 - }, - { - "__id__": 1656 + "__id__": 1655 }, { "__id__": 1658 }, { - "__id__": 1660 + "__id__": 1661 + }, + { + "__id__": 1664 + }, + { + "__id__": 1667 + }, + { + "__id__": 1670 + }, + { + "__id__": 1673 + }, + { + "__id__": 1676 + }, + { + "__id__": 1679 + }, + { + "__id__": 1682 + }, + { + "__id__": 1685 + }, + { + "__id__": 1688 + }, + { + "__id__": 1690 + }, + { + "__id__": 1692 + }, + { + "__id__": 1694 + }, + { + "__id__": 1696 + }, + { + "__id__": 1698 + }, + { + "__id__": 1700 + }, + { + "__id__": 1703 } ], "nestedPrefabInstanceRoots": [ + { + "__id__": 1536 + }, { "__id__": 1501 }, @@ -30226,7 +30892,7 @@ "__id__": 56 }, "sourceInfo": { - "__id__": 1613 + "__id__": 1653 }, "propertyPath": [ "icon_node" @@ -30235,7 +30901,7 @@ "__id__": 56 }, "targetInfo": { - "__id__": 1614 + "__id__": 1654 } }, { @@ -30256,7 +30922,7 @@ "__id__": 56 }, "sourceInfo": { - "__id__": 1616 + "__id__": 1656 }, "propertyPath": [ "sell_node" @@ -30265,7 +30931,7 @@ "__id__": 56 }, "targetInfo": { - "__id__": 1617 + "__id__": 1657 } }, { @@ -30286,7 +30952,7 @@ "__id__": 67 }, "sourceInfo": { - "__id__": 1619 + "__id__": 1659 }, "propertyPath": [ "icon_node" @@ -30295,7 +30961,7 @@ "__id__": 67 }, "targetInfo": { - "__id__": 1620 + "__id__": 1660 } }, { @@ -30316,7 +30982,7 @@ "__id__": 67 }, "sourceInfo": { - "__id__": 1622 + "__id__": 1662 }, "propertyPath": [ "sell_node" @@ -30325,7 +30991,7 @@ "__id__": 67 }, "targetInfo": { - "__id__": 1623 + "__id__": 1663 } }, { @@ -30346,7 +31012,7 @@ "__id__": 78 }, "sourceInfo": { - "__id__": 1625 + "__id__": 1665 }, "propertyPath": [ "icon_node" @@ -30355,7 +31021,7 @@ "__id__": 78 }, "targetInfo": { - "__id__": 1626 + "__id__": 1666 } }, { @@ -30376,7 +31042,7 @@ "__id__": 78 }, "sourceInfo": { - "__id__": 1628 + "__id__": 1668 }, "propertyPath": [ "sell_node" @@ -30385,7 +31051,7 @@ "__id__": 78 }, "targetInfo": { - "__id__": 1629 + "__id__": 1669 } }, { @@ -30406,7 +31072,7 @@ "__id__": 88 }, "sourceInfo": { - "__id__": 1631 + "__id__": 1671 }, "propertyPath": [ "icon_node" @@ -30415,7 +31081,7 @@ "__id__": 88 }, "targetInfo": { - "__id__": 1632 + "__id__": 1672 } }, { @@ -30436,7 +31102,7 @@ "__id__": 88 }, "sourceInfo": { - "__id__": 1634 + "__id__": 1674 }, "propertyPath": [ "sell_node" @@ -30445,7 +31111,7 @@ "__id__": 88 }, "targetInfo": { - "__id__": 1635 + "__id__": 1675 } }, { @@ -30466,7 +31132,7 @@ "__id__": 98 }, "sourceInfo": { - "__id__": 1637 + "__id__": 1677 }, "propertyPath": [ "icon_node" @@ -30475,7 +31141,7 @@ "__id__": 98 }, "targetInfo": { - "__id__": 1638 + "__id__": 1678 } }, { @@ -30496,7 +31162,7 @@ "__id__": 98 }, "sourceInfo": { - "__id__": 1640 + "__id__": 1680 }, "propertyPath": [ "sell_node" @@ -30505,7 +31171,7 @@ "__id__": 98 }, "targetInfo": { - "__id__": 1641 + "__id__": 1681 } }, { @@ -30526,7 +31192,7 @@ "__id__": 108 }, "sourceInfo": { - "__id__": 1643 + "__id__": 1683 }, "propertyPath": [ "icon_node" @@ -30535,7 +31201,7 @@ "__id__": 108 }, "targetInfo": { - "__id__": 1644 + "__id__": 1684 } }, { @@ -30556,7 +31222,7 @@ "__id__": 108 }, "sourceInfo": { - "__id__": 1646 + "__id__": 1686 }, "propertyPath": [ "sell_node" @@ -30565,7 +31231,7 @@ "__id__": 108 }, "targetInfo": { - "__id__": 1647 + "__id__": 1687 } }, { @@ -30583,7 +31249,7 @@ { "__type__": "cc.TargetOverrideInfo", "source": { - "__id__": 1539 + "__id__": 1579 }, "sourceInfo": null, "propertyPath": [ @@ -30593,7 +31259,7 @@ "__id__": 703 }, "targetInfo": { - "__id__": 1649 + "__id__": 1689 } }, { @@ -30606,7 +31272,7 @@ { "__type__": "cc.TargetOverrideInfo", "source": { - "__id__": 1539 + "__id__": 1579 }, "sourceInfo": null, "propertyPath": [ @@ -30616,7 +31282,7 @@ "__id__": 703 }, "targetInfo": { - "__id__": 1651 + "__id__": 1691 } }, { @@ -30629,7 +31295,7 @@ { "__type__": "cc.TargetOverrideInfo", "source": { - "__id__": 1539 + "__id__": 1579 }, "sourceInfo": null, "propertyPath": [ @@ -30639,7 +31305,7 @@ "__id__": 703 }, "targetInfo": { - "__id__": 1653 + "__id__": 1693 } }, { @@ -30652,7 +31318,7 @@ { "__type__": "cc.TargetOverrideInfo", "source": { - "__id__": 1539 + "__id__": 1579 }, "sourceInfo": null, "propertyPath": [ @@ -30662,7 +31328,7 @@ "__id__": 703 }, "targetInfo": { - "__id__": 1655 + "__id__": 1695 } }, { @@ -30674,7 +31340,7 @@ { "__type__": "cc.TargetOverrideInfo", "source": { - "__id__": 1539 + "__id__": 1579 }, "sourceInfo": null, "propertyPath": [ @@ -30684,7 +31350,7 @@ "__id__": 703 }, "targetInfo": { - "__id__": 1657 + "__id__": 1697 } }, { @@ -30696,7 +31362,7 @@ { "__type__": "cc.TargetOverrideInfo", "source": { - "__id__": 1539 + "__id__": 1579 }, "sourceInfo": null, "propertyPath": [ @@ -30706,7 +31372,7 @@ "__id__": 703 }, "targetInfo": { - "__id__": 1659 + "__id__": 1699 } }, { @@ -30721,7 +31387,7 @@ "__id__": 1501 }, "sourceInfo": { - "__id__": 1661 + "__id__": 1701 }, "propertyPath": [ "hand" @@ -30730,7 +31396,37 @@ "__id__": 1501 }, "targetInfo": { - "__id__": 1662 + "__id__": 1702 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "1fYnYBrbBNgoLyArRX18hs" + ] + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "cbf1XjyLtM3ptfNNcea20y" + ] + }, + { + "__type__": "cc.TargetOverrideInfo", + "source": { + "__id__": 1536 + }, + "sourceInfo": { + "__id__": 1704 + }, + "propertyPath": [ + "hand" + ], + "target": { + "__id__": 1536 + }, + "targetInfo": { + "__id__": 1705 } }, { diff --git a/assets/script/game/map/GuideComp.ts b/assets/script/game/map/GuideComp.ts index 03961636..fff5b33d 100644 --- a/assets/script/game/map/GuideComp.ts +++ b/assets/script/game/map/GuideComp.ts @@ -1,6 +1,6 @@ import { mLogger } from "../common/Logger"; -import { _decorator, Animation, AnimationClip, EventTouch, Label, Node, NodeEventType, Sprite, SpriteAtlas, Tween, tween, UIOpacity, Vec3, resources, Light, UITransform, Widget, CCInteger } from "cc"; +import { _decorator, Animation, AnimationClip, EventTouch, Label, Node, NodeEventType, Sprite, SpriteAtlas, Tween, tween, UIOpacity, Vec3, resources, Light, UITransform, Widget, CCInteger, CCString } from "cc"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; import { smc } from "../common/SingletonModuleComp"; @@ -22,7 +22,9 @@ export class GuideComp extends CCComp { /** 引导编号 ID */ @property({ type: CCInteger }) guide_id: number = 0 - + /** 动画名称 ID */ + @property({ type: CCString }) + animation_name: string = 'dianji'; onLoad() { // 如果该引导已经完成,则隐藏并销毁本节点 @@ -32,6 +34,35 @@ export class GuideComp extends CCComp { return; } + // 播放手势动画 + if (this.hand && this.animation_name) { + // 延迟一帧播放,防止组件还未完全激活 + this.scheduleOnce(() => { + if (!this.isValid) return; // 防止节点已被销毁 + + // 1. 先尝试在绑定的 this.hand 本身上查找 Animation 组件 + let anim = this.hand.getComponent(Animation); + + // 2. 如果没找到,再尝试去它的子节点上找 + if (!anim) { + anim = this.hand.getComponentInChildren(Animation); + } + + if (anim) { + // 确保目标动画状态存在 + const animState = anim.getState(this.animation_name); + if (animState) { + anim.play(this.animation_name); + mLogger.log(this.debugMode, 'Guide', `成功播放引导动画: ${this.animation_name}`); + } else { + mLogger.warn(this.debugMode, 'Guide', `找到了 Animation 组件,但组件内未挂载名为 '${this.animation_name}' 的动画剪辑(Clip)。请检查编辑器 Animation 组件的 Clips 列表!`); + } + } else { + mLogger.warn(this.debugMode, 'Guide', `在 hand 节点及其子节点下均未找到 Animation 组件,无法播放动画: ${this.animation_name}`); + } + }); + } + // 监听手势节点点击事件 if (this.hand) { this.hand.on(NodeEventType.TOUCH_START, this.onTouchStart, this);