fix: 统一技能准备时间并调整贝塞尔曲线默认参数

将技能配置中所有ready值从0.1改为0.2,使技能准备时间保持一致
修改SMoveComp中贝塞尔曲线默认高度参数,并更新Skill.ts中的参数覆盖逻辑
This commit is contained in:
panw
2026-04-13 11:00:37 +08:00
parent 8d64a1cbf0
commit f6b01ebb7c
3 changed files with 35 additions and 35 deletions

View File

@@ -180,9 +180,9 @@ export class Skill extends ecs.Entity {
sMoveCom.scale = caster.node.scale.x < 0 ? -1 : 1;
sMoveCom.runType = config.RType;
sMoveCom.endType = config.EType;
sMoveCom.bezierStartHeight = config.bezier_start_y ?? 18;
sMoveCom.bezierMidHeight = config.bezier_mid_y ?? 140;
sMoveCom.bezierArc = config.bezier_arc ?? 1;
sMoveCom.bezierStartHeight = config.bezier_start_y ?? sMoveCom.bezierStartHeight;
sMoveCom.bezierMidHeight = config.bezier_mid_y ?? sMoveCom.bezierMidHeight;
sMoveCom.bezierArc = config.bezier_arc ?? sMoveCom.bezierArc;
// 从SkillView获取移动参数位置初始化由SMoveSystem统一处理
sMoveCom.atk_x = SView.atk_x;
sMoveCom.atk_y = SView.atk_y;