feat(skill): 优化技能碰撞检测逻辑并添加移动数据组件
- 新增 StimeDataComp 组件用于存储技能移动相关数据 - 修改 SMoveSystem 中距离结束和碰撞结束时的销毁逻辑,增加关闭碰撞体操作 - 重构 SkillView 的碰撞检测启用逻辑,提取为 enable_collider_safely 方法确保安全性 - 修复攻击帧事件中碰撞检测的启用条件,避免无效操作
This commit is contained in:
25
assets/script/game/skill/STimeComp.ts
Normal file
25
assets/script/game/skill/STimeComp.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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/GameSet";
|
||||
import { SkillView } from "./SkillView";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
|
||||
/**
|
||||
* ==================== 技能移动数据组件 ====================
|
||||
*
|
||||
* 用途:
|
||||
* - 存储技能实体的移动相关数据
|
||||
* - 管理移动状态和参数
|
||||
* - 支持多种移动类型(线性、贝塞尔、固定位置等)
|
||||
*/
|
||||
@ecs.register('StimeDataComp')
|
||||
export class StimeDataComp extends ecs.Comp {
|
||||
/** 技能UUID */
|
||||
s_uuid: number = 0;
|
||||
reset() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user