装备技能转变 触发+伙伴死亡 被攻击触发

This commit is contained in:
panw
2025-06-18 10:58:18 +08:00
parent fdfa9cbd37
commit be4543b62e
9 changed files with 305 additions and 74 deletions

View File

@@ -252,7 +252,7 @@
"fileId": "0f1YvlzyZOLIAHiCyCBXRz"
},
{
"__type__": "20503VOc7ZA84sbp8G72pxZ",
"__type__": "cc.BoxCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
@@ -263,29 +263,61 @@
"__prefab": {
"__id__": 13
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 3.6,
"y": -10.2
},
"_size": {
"__type__": "cc.Size",
"width": 63.6,
"height": 106.7
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "38+qbhXMVHtoU9k7o0hvx8"
"fileId": "abSos3/xZFOZSp08Izyl05"
},
{
"__type__": "6a7fejJxHlM5r/TS8IFF1Kq",
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": false,
"_enabled": true,
"__prefab": {
"__id__": 15
},
"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": "36K2fPnkJLPbBwJ5DxQ0ry"
"fileId": "2apGMb5RtE2YHEPWvhVoTH"
},
{
"__type__": "cc.PrefabInfo",

View File

@@ -35,10 +35,16 @@
},
{
"__id__": 14
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 16
"__id__": 20
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -314,6 +320,74 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "29TlPeJcdIy4wZXKhtLbdr"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"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": "58tC4fIN9CO56Y1QXCUmEk"
},
{
"__type__": "cc.BoxCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 4.1,
"y": -3.7
},
"_size": {
"__type__": "cc.Size",
"width": 62.6,
"height": 31.7
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "06iYFbB9lCdoNl1MeEo3h4"
},
{
"__type__": "cc.PrefabInfo",
"root": {

View File

@@ -38,10 +38,13 @@
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 18
"__id__": 20
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -284,40 +287,106 @@
"fileId": "f4FjKz0SlKzLQiRv9NKgJU"
},
{
"__type__": "20503VOc7ZA84sbp8G72pxZ",
"__type__": "f680dkagx9PmbfqtF463/Ua",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": false,
"_enabled": true,
"__prefab": {
"__id__": 15
},
"speed": 600,
"controlPointSide": 1,
"controlPointOffset": 0.5,
"controlPointRandomness": 0.3,
"autoRotate": true,
"showTrajectory": true,
"trajectoryColor": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"trajectoryWidth": 3,
"easing": "linear",
"rotationSmoothness": 0.6,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "71rQac811CkZmLJZ+3hWYp"
"fileId": "ceJ7oJ7BtCa567d+94RoRt"
},
{
"__type__": "c92adevMwxBYYbFjVc25eV9",
"__type__": "cc.BoxCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": false,
"_enabled": true,
"__prefab": {
"__id__": 17
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 11.1,
"y": 1.3
},
"_size": {
"__type__": "cc.Size",
"width": 76.6,
"height": 21.7
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "beqrCy1W1KT5dRKWJ1+thK"
"fileId": "78Uk9gCslA763sdijuTa5h"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"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": "9dkSU5svFBwZACdT8juge4"
},
{
"__type__": "cc.PrefabInfo",

View File

@@ -25,10 +25,13 @@
},
{
"__id__": 4
},
{
"__id__": 6
}
],
"_prefab": {
"__id__": 6
"__id__": 8
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -132,6 +135,40 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "a32g1O2bxLI6D28EOYFjld"
},
{
"__type__": "f680dkagx9PmbfqtF463/Ua",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 7
},
"speed": 600,
"controlPointSide": 1,
"controlPointOffset": 0.5,
"controlPointRandomness": 0.3,
"autoRotate": true,
"showTrajectory": true,
"trajectoryColor": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"trajectoryWidth": 3,
"easing": "linear",
"rotationSmoothness": 0.6,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c7oqZKuutF/aQd3exMADCG"
},
{
"__type__": "cc.PrefabInfo",
"root": {
@@ -141,6 +178,7 @@
"__id__": 0
},
"fileId": "733PKzwANLyJWD2ume4u5f",
"instance": null,
"targetOverrides": null
}
]