1. 新增SkillView组件属性runType/endType/speed/time,替换原配置表字段 2. 批量同步所有技能prefab的配置参数 3. 优化技能运行逻辑,优先使用prefab配置,配置表仅作兜底 4. 新增同步脚本用于批量迁移技能配置
344 lines
5.9 KiB
Plaintext
344 lines
5.9 KiB
Plaintext
[
|
|
{
|
|
"__type__": "cc.Prefab",
|
|
"_name": "h2",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_native": "",
|
|
"data": {
|
|
"__id__": 1
|
|
},
|
|
"optimizationPolicy": 0,
|
|
"persistent": false
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "h2",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": null,
|
|
"_children": [
|
|
{
|
|
"__id__": 2
|
|
}
|
|
],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 8
|
|
},
|
|
{
|
|
"__id__": 10
|
|
},
|
|
{
|
|
"__id__": 12
|
|
},
|
|
{
|
|
"__id__": 14
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 16
|
|
},
|
|
"_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": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "Node",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 1
|
|
},
|
|
"_children": [],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 3
|
|
},
|
|
{
|
|
"__id__": 5
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 7
|
|
},
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 6.77,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0.3,
|
|
"y": 0.3,
|
|
"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__": 2
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 4
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 78,
|
|
"height": 78
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "93pNmvtQlLSqtTgIepyEmA"
|
|
},
|
|
{
|
|
"__type__": "cc.Sprite",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 2
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 6
|
|
},
|
|
"_customMaterial": null,
|
|
"_srcBlendFactor": 2,
|
|
"_dstBlendFactor": 4,
|
|
"_color": {
|
|
"__type__": "cc.Color",
|
|
"r": 255,
|
|
"g": 255,
|
|
"b": 255,
|
|
"a": 255
|
|
},
|
|
"_spriteFrame": {
|
|
"__uuid__": "abc35b6e-b052-4835-a3a3-cb85abd47f4d@f065c",
|
|
"__expectedType__": "cc.SpriteFrame"
|
|
},
|
|
"_type": 0,
|
|
"_fillType": 0,
|
|
"_sizeMode": 1,
|
|
"_fillCenter": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"_fillStart": 0,
|
|
"_fillRange": 0,
|
|
"_isTrimmedMode": true,
|
|
"_useGrayscale": false,
|
|
"_atlas": {
|
|
"__uuid__": "abc35b6e-b052-4835-a3a3-cb85abd47f4d",
|
|
"__expectedType__": "cc.SpriteAtlas"
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "12eKc8gltBz50frJCS5+ww"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "3arqAMBz1MvoXBzeDaL5M/",
|
|
"instance": null,
|
|
"targetOverrides": null,
|
|
"nestedPrefabInstanceRoots": null
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 9
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 30,
|
|
"height": 40
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "63NP9yq3hEUKD/OZZZ5t7x"
|
|
},
|
|
{
|
|
"__type__": "57aabs7TE1J5obTAZczc+64",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 11
|
|
},
|
|
"atk_x": 10,
|
|
"atk_y": 15,
|
|
"_id": "",
|
|
"runType": 1,
|
|
"endType": 2,
|
|
"speed": 720,
|
|
"time": 0
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "60LInmZXxDtKu79AshRG9j"
|
|
},
|
|
{
|
|
"__type__": "cc.RigidBody2D",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 13
|
|
},
|
|
"enabledContactListener": true,
|
|
"bullet": false,
|
|
"awakeOnLoad": true,
|
|
"_group": 1,
|
|
"_type": 1,
|
|
"_allowSleep": false,
|
|
"_gravityScale": 1,
|
|
"_linearDamping": 0,
|
|
"_angularDamping": 0,
|
|
"_linearVelocity": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"_angularVelocity": 0,
|
|
"_fixedRotation": false,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "e1yBA625RLwLhzo6bLYW7j"
|
|
},
|
|
{
|
|
"__type__": "cc.BoxCollider2D",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 15
|
|
},
|
|
"tag": 0,
|
|
"_group": 1,
|
|
"_density": 1,
|
|
"_sensor": true,
|
|
"_friction": 0.2,
|
|
"_restitution": 0,
|
|
"_offset": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"_size": {
|
|
"__type__": "cc.Size",
|
|
"width": 30,
|
|
"height": 40
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "43ZDJfXX9AX73gyytKQZWm"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
|
|
"instance": null,
|
|
"targetOverrides": null
|
|
}
|
|
]
|