refactor(skill): 优化技能碰撞检测逻辑并移除重复命中检查

- 移除hitTargets集合及相关重复命中检查逻辑
- 改进碰撞检测日志输出,增加安全性检查
- 清理注释掉的旧攻击逻辑代码
- 在reset方法中添加碰撞器事件解绑
This commit is contained in:
2025-11-03 10:57:08 +08:00
parent e4905bcca2
commit 5bd2e15fb5
6 changed files with 89 additions and 86 deletions

View File

@@ -301,7 +301,7 @@
"bullet": false,
"awakeOnLoad": true,
"_group": 1,
"_type": 2,
"_type": 1,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,

View File

@@ -513,7 +513,7 @@
"tag": 0,
"_group": 1,
"_density": 1,
"_sensor": true,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"_offset": {

View File

@@ -304,8 +304,8 @@
"bullet": false,
"awakeOnLoad": true,
"_group": 1,
"_type": 2,
"_allowSleep": true,
"_type": 1,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,