fix: 修复技能碰撞检测和英雄prefab配置问题

修复技能碰撞检测逻辑,确保正确应用伤害并过滤同组碰撞
调整多个英雄prefab的_enabled状态和碰撞组配置
优化技能视图的日志输出和伤害应用逻辑
移除不必要的prefab组件和调试日志
This commit is contained in:
2025-11-01 23:10:38 +08:00
parent 2e1c6c3aa1
commit 1091b0399e
19 changed files with 40 additions and 164 deletions

View File

@@ -32,13 +32,10 @@
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 20
"__id__": 18
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -353,48 +350,12 @@
},
"atk_x": 0,
"atk_y": 0,
"runType": 2,
"endType": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "35nW0iQNBH2bqkWAr3MVkQ"
},
{
"__type__": "f680dkagx9PmbfqtF463/Ua",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"speed": 600,
"controlPointSide": 1,
"controlPointOffset": 0.5,
"controlPointRandomness": 0.3,
"autoRotate": false,
"showTrajectory": false,
"trajectoryColor": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"trajectoryWidth": 3,
"easing": "linear",
"rotationSmoothness": 0.6,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "defJ3noEdMUapDOKtsHbd+"
},
{
"__type__": "cc.PrefabInfo",
"root": {

View File

@@ -32,13 +32,10 @@
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 20
"__id__": 18
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -353,48 +350,12 @@
},
"atk_x": 0,
"atk_y": 0,
"runType": 2,
"endType": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "60LInmZXxDtKu79AshRG9j"
},
{
"__type__": "f680dkagx9PmbfqtF463/Ua",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"speed": 600,
"controlPointSide": 1,
"controlPointOffset": 0.5,
"controlPointRandomness": 0.3,
"autoRotate": false,
"showTrajectory": false,
"trajectoryColor": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"trajectoryWidth": 3,
"easing": "linear",
"rotationSmoothness": 0.6,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "65YLwe9t9EXo5kI3HQEGhs"
},
{
"__type__": "cc.PrefabInfo",
"root": {

View File

@@ -276,8 +276,6 @@
},
"atk_x": 0,
"atk_y": 0,
"runType": 2,
"endType": 0,
"_id": ""
},
{
@@ -330,12 +328,12 @@
"__prefab": {
"__id__": 17
},
"enabledContactListener": false,
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 1,
"_type": 2,
"_allowSleep": true,
"_type": 1,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
@@ -367,7 +365,7 @@
"tag": 0,
"_group": 1,
"_density": 1,
"_sensor": false,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {

View File

@@ -38,13 +38,10 @@
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 20
"__id__": 18
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -292,7 +289,7 @@
"fileId": "60LInmZXxDtKu79AshRG9j"
},
{
"__type__": "f680dkagx9PmbfqtF463/Ua",
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
@@ -303,46 +300,12 @@
"__prefab": {
"__id__": 15
},
"speed": 600,
"controlPointSide": 1,
"controlPointOffset": 0.5,
"controlPointRandomness": 0.3,
"autoRotate": false,
"showTrajectory": false,
"trajectoryColor": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"trajectoryWidth": 3,
"easing": "linear",
"rotationSmoothness": 0.6,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "65YLwe9t9EXo5kI3HQEGhs"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"enabledContactListener": false,
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 1,
"_type": 2,
"_allowSleep": true,
"_type": 1,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
@@ -369,12 +332,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 19
"__id__": 17
},
"tag": 0,
"_group": 1,
"_density": 1,
"_sensor": false,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {