feat(英雄): 优化血条和冷却UI表现
- 移除血条2秒自动隐藏逻辑,改为常显并根据血量状态调整透明度 - 新增血条受击抖动效果,提升打击感 - 增加技能冷却进度条显示功能 - 统一血条激活状态管理,通过透明度变化区分活跃/空闲状态 - 修复复活后血条显示异常问题
This commit is contained in:
@@ -45,6 +45,8 @@ export class SCastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
|
||||
if (!heroAttrs || !heroView || !heroView.node) return;
|
||||
if (heroAttrs.is_dead || heroAttrs.is_reviving || heroAttrs.isStun() || heroAttrs.isFrost()) return;
|
||||
heroAttrs.updateCD(this.dt);
|
||||
heroView.cd_show();
|
||||
|
||||
const castPlan = this.pickCastSkill(heroAttrs, heroView);
|
||||
if (!this.hasCastTarget(castPlan)) return;
|
||||
this.castSkill(castPlan, heroAttrs, heroView);
|
||||
|
||||
Reference in New Issue
Block a user