role 也转为使用hero 预制体

This commit is contained in:
2024-09-02 17:15:30 +08:00
parent 83bd06334f
commit 8b9c04eae3
15 changed files with 299 additions and 223 deletions

View File

@@ -39,8 +39,14 @@
{
"__id__": 109
},
{
"__id__": 115
},
{
"__id__": 121
},
{
"__id__": 127
}
],
"_active": true,
@@ -123,7 +129,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 5,
"y": 1.714,
"z": 0
},
"_lrot": {
@@ -998,12 +1004,12 @@
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"y": 40
},
"_size": {
"__type__": "cc.Size",
"width": 120,
"height": 80
"width": 1000,
"height": 500
},
"_id": ""
},
@@ -2041,8 +2047,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -30.643,
"y": 70.444,
"x": 0,
"y": 86.875,
"z": 0
},
"_lrot": {
@@ -2444,33 +2450,29 @@
},
{
"__type__": "cc.Node",
"_name": "hp_max",
"_name": "life2",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 110
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 116
"__id__": 110
},
{
"__id__": 118
"__id__": 112
}
],
"_prefab": {
"__id__": 120
"__id__": 114
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -23.203,
"y": 24.334,
"x": -36.00100000000003,
"y": 24.333999999999946,
"z": 0
},
"_lrot": {
@@ -2496,67 +2498,17 @@
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "life2",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 109
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
},
{
"__id__": 113
}
],
"_prefab": {
"__id__": 115
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -12.798,
"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": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 110
"__id__": 109
},
"_enabled": true,
"__prefab": {
"__id__": 112
"__id__": 111
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2580,11 +2532,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 110
"__id__": 109
},
"_enabled": true,
"__prefab": {
"__id__": 114
"__id__": 113
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -2632,13 +2584,63 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "hp_max",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 116
},
{
"__id__": 118
}
],
"_prefab": {
"__id__": 120
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -23.203,
"y": 24.334,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1.0000000000000002,
"y": 1.0000000000000002,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 109
"__id__": 115
},
"_enabled": true,
"__prefab": {
@@ -2666,7 +2668,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 109
"__id__": 115
},
"_enabled": true,
"__prefab": {
@@ -2743,32 +2745,28 @@
},
{
"__type__": "cc.Node",
"_name": "atk",
"_name": "Heroes_icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 122
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 128
"__id__": 122
},
{
"__id__": 130
"__id__": 124
}
],
"_prefab": {
"__id__": 132
"__id__": 126
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 21.38304655140837,
"x": 37.16004655140836,
"y": 102.51707115199474,
"z": 0
},
@@ -2795,67 +2793,17 @@
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Heroes_icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 121
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 123
},
{
"__id__": 125
}
],
"_prefab": {
"__id__": 127
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 15.777,
"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": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 122
"__id__": 121
},
"_enabled": true,
"__prefab": {
"__id__": 124
"__id__": 123
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2879,11 +2827,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 122
"__id__": 121
},
"_enabled": true,
"__prefab": {
"__id__": 126
"__id__": 125
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -2931,13 +2879,63 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "atk",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 128
},
{
"__id__": 130
}
],
"_prefab": {
"__id__": 132
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 21.38304655140837,
"y": 102.51707115199474,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1.0000000000000002,
"y": 1.0000000000000002,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 121
"__id__": 127
},
"_enabled": true,
"__prefab": {
@@ -2965,7 +2963,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 121
"__id__": 127
},
"_enabled": true,
"__prefab": {
@@ -3228,13 +3226,13 @@
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": -0.4,
"y": 65.2
"x": 2,
"y": 59.3
},
"_size": {
"__type__": "cc.Size",
"width": 89.8,
"height": 104.5
"width": 61.9,
"height": 40.9
},
"_id": ""
},

View File

@@ -78,7 +78,7 @@
"__id__": 1
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 3

View File

@@ -78,7 +78,7 @@
"__id__": 1
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 3