整合,清理掉很多冗余的东西

This commit is contained in:
2025-11-02 10:34:18 +08:00
parent b24f0e2afc
commit f35d755b74
41 changed files with 99 additions and 1798 deletions

View File

@@ -1,7 +1,7 @@
import { Vec3, v3, Node } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { RType, EType, SkillSet } from "../common/config/SkillSet";
import { BoxSet } from "../common/config/BoxSet";
import { BoxSet } from "../common/config/GameSet";
import { SkillView } from "./SkillView";
import { smc } from "../common/SingletonModuleComp";
@@ -95,7 +95,7 @@ export class SMoveDataComp extends ecs.Comp {
}
// 对于直线运动只在x轴方向延长y轴保持不变
const originalTarget = v3(this.targetPos.x, this.targetPos.y + BoxSet.ATK_Y);
const originalTarget = v3(this.targetPos.x, this.targetPos.y);
// 计算x轴方向
const xDirection = originalTarget.x > originalStart.x ? 1 : -1;