通过帧事件 实现技能的范围伤害完善

This commit is contained in:
panw
2025-08-08 16:36:54 +08:00
parent cd6675652b
commit 1482e9989a
7 changed files with 157 additions and 193 deletions

View File

@@ -50,13 +50,10 @@
},
{
"__id__": 40
},
{
"__id__": 42
}
],
"_prefab": {
"__id__": 44
"__id__": 42
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -73,8 +70,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1.4,
"y": 1.4,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@@ -766,7 +763,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"width": 320,
"height": 80
},
"_anchorPoint": {
@@ -798,74 +795,6 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "8ahZv91itPcYJm8S0veHYl"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 37
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 1,
"_type": 1,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "59HK6AcrdOhbxkRsbxWQ3l"
},
{
"__type__": "cc.BoxCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 39
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_size": {
"__type__": "cc.Size",
"width": 180,
"height": 80
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e4gDUfAyNDN6GrEPB169Le"
},
{
"__type__": "f680dkagx9PmbfqtF463/Ua",
"_name": "",
@@ -876,7 +805,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 41
"__id__": 37
},
"speed": 600,
"controlPointSide": 1,
@@ -910,7 +839,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 43
"__id__": 39
},
"playOnLoad": true,
"_clips": [
@@ -929,6 +858,24 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "b2FPQXFCNH7alJWxanESql"
},
{
"__type__": "b1d8e1ZA0dLtqufhidnFK/K",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 41
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3f9AguZxZMjI22amsER6pF"
},
{
"__type__": "cc.PrefabInfo",
"root": {