refactor(游戏对象): 调整英雄位置和动画关键帧数值
- 修改hm2.prefab中英雄的y坐标位置 - 简化HInfoComp中节点查找路径 - 更新lr3.anim动画关键帧数值和编辑器额外属性
This commit is contained in:
@@ -62,8 +62,8 @@ export class HInfoComp extends CCComp {
|
||||
}
|
||||
|
||||
start() {
|
||||
this.name_node=this.node.getChildByName("hero").getChildByName("hname").getChildByName("name")
|
||||
this.type_node=this.node.getChildByName("hero").getChildByName("hname").getChildByName("type")
|
||||
this.name_node=this.node.getChildByName("hname").getChildByName("name")
|
||||
this.type_node=this.node.getChildByName("hname").getChildByName("type")
|
||||
this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("ap")
|
||||
this.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("hp")
|
||||
this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("def")
|
||||
@@ -168,7 +168,7 @@ export class HInfoComp extends CCComp {
|
||||
}
|
||||
show_lock(){
|
||||
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(){
|
||||
for (let i = 0; i < this.heroNodes.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user