refactor(英雄): 移除复活时间相关逻辑
- 从 HeroAttrs 枚举中删除 revive_time 属性 - 移除 HeroAtkSystem 中的 scheduleRevive 调用 - 清理 HeroAttrsComp 中与复活时间相关的字段和重置逻辑 - 简化 HeroViewComp 的 alive 方法并删除 scheduleRevive 方法
This commit is contained in:
@@ -389,28 +389,17 @@ export class HeroViewComp extends CCComp {
|
||||
alive(){
|
||||
// 重置复活标记 - 必须最先重置,否则status_change会被拦截
|
||||
this.model.is_reviving = false;
|
||||
|
||||
this.model.is_dead=false
|
||||
this.model.is_count_dead=false
|
||||
this.deadCD = 0;
|
||||
this.as.do_buff();
|
||||
this.status_change("idle");
|
||||
this.top_node.active=true
|
||||
this.setTopBarOpacity(false);
|
||||
this.lastBarUpdateTime=0
|
||||
// this.status_change("idle");
|
||||
// this.top_node.active=true
|
||||
// this.setTopBarOpacity(false);
|
||||
// this.lastBarUpdateTime=0
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 调度复活逻辑
|
||||
* @param delay 延迟时间(秒)
|
||||
*/
|
||||
scheduleRevive(s_uuid:number) {
|
||||
const sConf=SkillSet[s_uuid]
|
||||
this.playReady(sConf.readyAnm)
|
||||
this.skill_name('',s_uuid)
|
||||
this.alive();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 死亡视图表现
|
||||
|
||||
Reference in New Issue
Block a user