feat: 添加冰冻效果并移除调试组件
- 在 GameSet 中添加冰冻时间常量 FROST_TIME - 在 HeroAttrsComp 中新增 toFrost 方法用于处理冰冻状态 - 在 HeroAtkSystem 中增加冰冻判定,命中时触发冰冻效果并显示冰冻特效 - 简化 HeroViewComp 中的冰冻特效方法,移除眩晕特效方法 - 删除调试用的 HSkillComp 组件及其 meta 文件 - 调整 HeroBuffSystem 的计时器间隔,使冰冻状态更平滑地递减
This commit is contained in:
@@ -261,17 +261,8 @@ export class HeroViewComp extends CCComp {
|
||||
}
|
||||
|
||||
/** 冰冻特效 */
|
||||
private in_iced(t: number = 1, ap: number = 0) {
|
||||
const node = this.spawnTimedFx("game/skill/buff/iced", this.node, t);
|
||||
|
||||
}
|
||||
|
||||
/** 眩晕特效 */
|
||||
private in_yun(t: number = 1, ap: number = 0) {
|
||||
const node = this.spawnTimedFx("game/skill/buff/buff_yun", this.node, t);
|
||||
if (!node) return;
|
||||
let height = this.node.getComponent(UITransform).height;
|
||||
node.setPosition(v3(0, height));
|
||||
in_iced(t: number = 1) {
|
||||
this.spawnTimedFx("game/skill/buff/iced", this.node, t);
|
||||
}
|
||||
|
||||
/** 技能提示 */
|
||||
|
||||
Reference in New Issue
Block a user