refactor(游戏对象): 调整英雄位置和动画关键帧数值

- 修改hm2.prefab中英雄的y坐标位置
- 简化HInfoComp中节点查找路径
- 更新lr3.anim动画关键帧数值和编辑器额外属性
This commit is contained in:
2025-11-04 14:46:28 +08:00
parent 087f4010be
commit 53cf25d7a5
4 changed files with 2043 additions and 1950 deletions

View File

@@ -561,7 +561,7 @@
"value": { "value": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 107.768, "y": 129.893,
"z": 0 "z": 0
} }
}, },

View File

@@ -76,7 +76,7 @@
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": -422.0780029296875, "value": -425,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
@@ -90,7 +90,7 @@
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": -422.0780029296875, "value": -422.078003,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
@@ -110,7 +110,9 @@
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": null "__editorExtras__": {
"broken": null
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
@@ -122,7 +124,9 @@
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": null "__editorExtras__": {
"broken": null
}
} }
], ],
"preExtrapolation": 1, "preExtrapolation": 1,
@@ -147,7 +151,7 @@
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 99.77200317382812, "value": 120,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
@@ -161,7 +165,7 @@
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 99.77200317382812, "value": 120,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
@@ -175,25 +179,29 @@
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 99.77200317382812, "value": 120,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": null "__editorExtras__": {
"broken": null
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 99.77200317382812, "value": 120,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": null "__editorExtras__": {
"broken": null
}
} }
], ],
"preExtrapolation": 1, "preExtrapolation": 1,
@@ -252,7 +260,9 @@
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": null "__editorExtras__": {
"broken": null
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
@@ -264,7 +274,9 @@
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": null "__editorExtras__": {
"broken": null
}
} }
], ],
"preExtrapolation": 1, "preExtrapolation": 1,

File diff suppressed because it is too large Load Diff

View File

@@ -62,8 +62,8 @@ export class HInfoComp extends CCComp {
} }
start() { start() {
this.name_node=this.node.getChildByName("hero").getChildByName("hname").getChildByName("name") this.name_node=this.node.getChildByName("hname").getChildByName("name")
this.type_node=this.node.getChildByName("hero").getChildByName("hname").getChildByName("type") this.type_node=this.node.getChildByName("hname").getChildByName("type")
this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("ap") this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("ap")
this.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("hp") this.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("hp")
this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("def") this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("def")
@@ -168,7 +168,7 @@ export class HInfoComp extends CCComp {
} }
show_lock(){ show_lock(){
this.node.getChildByName("buy").active=!this.is_own() this.node.getChildByName("buy").active=!this.is_own()
this.node.getChildByName("hero").getChildByName("lock").active=!this.is_own() this.node.getChildByName("lock").active=!this.is_own()
} }
claear_hero(){ claear_hero(){
for (let i = 0; i < this.heroNodes.length; i++) { for (let i = 0; i < this.heroNodes.length; i++) {