feat: 添加击晕状态相关功能
1. 新增击晕概率、抗性属性配置与组件字段 2. 实现击晕判定逻辑与视图特效播放 3. 增加击晕时技能CD暂停清零的处理 4. 配置默认击晕持续时间为2秒
This commit is contained in:
@@ -308,6 +308,11 @@ export class HeroViewComp extends CCComp {
|
||||
this.spawnTimedFx("game/skill/buff/iced", this.node, t);
|
||||
}
|
||||
|
||||
/** 击晕特效 */
|
||||
in_stun(t: number = 1) {
|
||||
this.spawnTimedFx("game/skill/buff/stun", this.node, t);
|
||||
}
|
||||
|
||||
/** 技能提示 */
|
||||
private tooltip(type: number = 1, value: string = "", s_uuid: number = 1001, y: number = 50) {
|
||||
let pos = v3(0, 60);
|
||||
|
||||
Reference in New Issue
Block a user