fix: 修复怪物技能、朝向和飘字显示问题
1. 修正技能节点缩放逻辑,确保镜像显示正确 2. 修复怪物反向移动时的朝向错误 3. 调整伤害飘字的Y轴偏移,优化显示位置 4. 更新怪物配置的技能ID,修正技能绑定错误
This commit is contained in:
@@ -142,7 +142,7 @@ export class Skill extends ecs.Entity {
|
||||
node.active = true;
|
||||
// 设置节点属性
|
||||
let face=caster.node.scale.x < 0 ? -1 : 1
|
||||
node.setScale(v3(node.scale.x*face,node.scale.y,1))
|
||||
node.setScale(v3(Math.abs(node.scale.x)*face,node.scale.y,1))
|
||||
// 初始视图
|
||||
const SView = node.getComponent(SkillView);
|
||||
if (!SView) {
|
||||
|
||||
Reference in New Issue
Block a user