feat(hero): 为boss单位调整头顶UI位置并添加标识图标
调整HeroViewComp中boss单位的top_node位置,从y=80提升至y=105以更好显示 为mo6、mud4、mud5三个boss预制体添加ItemIcon_Skull_Boss_Red标识图标 更新预制体结构,包括组件引用、材质和颜色属性覆盖
This commit is contained in:
@@ -115,6 +115,7 @@ export class HeroViewComp extends CCComp {
|
||||
this.top_node = this.node.getChildByName("top");
|
||||
this.topOpacity = this.top_node.getComponent(UIOpacity) || this.top_node.addComponent(UIOpacity);
|
||||
this.top_node.setPosition(0, 80, 0);
|
||||
if(this.model.is_boss) this.top_node.setPosition(0, 105, 0);
|
||||
this.topBasePos = this.top_node.position.clone();
|
||||
const hpNode = this.top_node.getChildByName("hp");
|
||||
if(this.model.fac==FacSet.HERO){
|
||||
|
||||
Reference in New Issue
Block a user