fix: 修复技能碰撞检测和英雄prefab配置问题
修复技能碰撞检测逻辑,确保正确应用伤害并过滤同组碰撞 调整多个英雄prefab的_enabled状态和碰撞组配置 优化技能视图的日志输出和伤害应用逻辑 移除不必要的prefab组件和调试日志
This commit is contained in:
@@ -166,6 +166,8 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat
|
||||
|
||||
// 这里可以调用 SkillConComp 的目标选择逻辑
|
||||
// 暂时返回默认位置
|
||||
if (caster==null ) return
|
||||
if(caster.ent == null) return
|
||||
const heroAttrs = caster.ent.get(HeroAttrsComp);
|
||||
const fac = heroAttrs?.fac ?? 0;
|
||||
const defaultX = fac === 0 ? 400 : -400;
|
||||
|
||||
Reference in New Issue
Block a user