buff 优化 heroset 不再使用json

This commit is contained in:
2024-08-29 00:28:22 +08:00
parent 5094cb4f3c
commit 3ad7155a28
9 changed files with 563 additions and 54 deletions

View File

@@ -52,8 +52,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.7,
"y": 0.7,
"x": 0.5,
"y": 0.5,
"z": 1
},
"_mobility": 0,
@@ -258,7 +258,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": -54.944,
"z": 0
},
"_lrot": {
@@ -270,8 +270,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 2,
"y": 2,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@@ -298,7 +298,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 17.90380859375,
"width": 26.24609375,
"height": 54.4
},
"_anchorPoint": {
@@ -337,8 +337,8 @@
"_string": "5",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 25,
"_fontSize": 25,
"_actualFontSize": 40,
"_fontSize": 40,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,

View File

@@ -38,34 +38,37 @@
},
{
"__id__": 65
},
{
"__id__": 75
}
],
"_active": true,
"_components": [
{
"__id__": 75
"__id__": 89
},
{
"__id__": 77
"__id__": 91
},
{
"__id__": 79
"__id__": 93
},
{
"__id__": 81
"__id__": 95
},
{
"__id__": 83
"__id__": 97
},
{
"__id__": 85
"__id__": 99
},
{
"__id__": 87
"__id__": 101
}
],
"_prefab": {
"__id__": 89
"__id__": 103
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1647,6 +1650,307 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "shield",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 76
}
],
"_active": false,
"_components": [
{
"__id__": 82
},
{
"__id__": 84
},
{
"__id__": 86
}
],
"_prefab": {
"__id__": 88
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 105.727,
"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": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Bar",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 75
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 77
},
{
"__id__": 79
}
],
"_prefab": {
"__id__": 81
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -20,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 76
},
"_enabled": true,
"__prefab": {
"__id__": 78
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fd3dH6jldPsa66Ci7KUVI3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 76
},
"_enabled": true,
"__prefab": {
"__id__": 80
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "42nR/FpVZByb+otJaujBAU"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "82t+mKrT1NDK/FLaizJqmu",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 75
},
"_enabled": true,
"__prefab": {
"__id__": 83
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 5
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d0Vsb23mxLQp4brp5KrYoI"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 75
},
"_enabled": true,
"__prefab": {
"__id__": 85
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": null,
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "817EmqwtZOoo1jCiT331/h"
},
{
"__type__": "cc.ProgressBar",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 75
},
"_enabled": true,
"__prefab": {
"__id__": 87
},
"_barSprite": {
"__id__": 79
},
"_mode": 0,
"_totalLength": 40,
"_progress": 1,
"_reverse": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "03p2B8lt5IL6sqNzysZUD4"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "f5X0rdMcFOMZ0GRx4uHEc0",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -1657,7 +1961,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 76
"__id__": 90
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1685,7 +1989,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 78
"__id__": 92
},
"animator": {
"__id__": 24
@@ -1706,7 +2010,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 80
"__id__": 94
},
"hitFlashMaterial": {
"__uuid__": "a8f34051-ccff-4050-b9d9-234f62977264",
@@ -1731,7 +2035,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 82
"__id__": 96
},
"_id": ""
},
@@ -1749,7 +2053,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 84
"__id__": 98
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -1791,7 +2095,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 86
"__id__": 100
},
"enabledContactListener": true,
"bullet": true,
@@ -1825,7 +2129,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 88
"__id__": 102
},
"tag": 0,
"_group": 2,