feat(hero): 添加新英雄资源并优化动画系统
- 新增英雄 ha2、ha3、hk2、hk3、hk4、hm3、hm4、hm5、mo5、mo6 的目录元数据 - 为新增英雄添加完整的动画剪辑(atk0、dead、idle、max0、max1、move) - 移除旧版英雄的冗余动画文件(atk1、atk2、buff、stun) - 更新现有英雄的动画配置,统一使用 atk0 作为攻击动画 - 优化 hm1 英雄的动画时长和采样率,提升流畅度 - 在 HeroViewComp 中增加英雄等级显示逻辑 - 重构 HeroAnmComp,简化动画状态管理
This commit is contained in:
@@ -100,6 +100,9 @@ export class HeroViewComp extends CCComp {
|
||||
this.top_node.getChildByName("hp").active = true;
|
||||
this.top_node.getChildByName("cd").active = true
|
||||
this.top_node.getChildByName("shield").active = false;
|
||||
this.top_node.getChildByName("lv").active = this.model.fac==FacSet.HERO;
|
||||
this.top_node.getChildByName("lv").getChildByName("lv2").active=this.model.lv >= 2
|
||||
this.top_node.getChildByName("lv").getChildByName("lv3").active=this.model.lv >= 3
|
||||
this.top_node.active = true;
|
||||
this.setTopBarOpacity(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user