feat(hero): 添加受击闪光效果并重构相关代码
新增FlashSprite组件实现受击闪光效果 重构HeroAnmComp和HeroViewComp以支持闪光效果 更新多个英雄prefab以包含闪光材质和组件
This commit is contained in:
@@ -22,23 +22,20 @@
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 12
|
||||
"__id__": 14
|
||||
},
|
||||
{
|
||||
"__id__": 24
|
||||
"__id__": 26
|
||||
},
|
||||
{
|
||||
"__id__": 35
|
||||
"__id__": 37
|
||||
},
|
||||
{
|
||||
"__id__": 44
|
||||
"__id__": 46
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 53
|
||||
},
|
||||
{
|
||||
"__id__": 55
|
||||
},
|
||||
@@ -50,10 +47,13 @@
|
||||
},
|
||||
{
|
||||
"__id__": 61
|
||||
},
|
||||
{
|
||||
"__id__": 63
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 63
|
||||
"__id__": 65
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -106,10 +106,13 @@
|
||||
},
|
||||
{
|
||||
"__id__": 9
|
||||
},
|
||||
{
|
||||
"__id__": 11
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 11
|
||||
"__id__": 13
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -299,6 +302,28 @@
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "1dn32Q7fxNOrkpyNeazdIo"
|
||||
},
|
||||
{
|
||||
"__type__": "954e43Y+QJHNIUpmqTCWA7A",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 12
|
||||
},
|
||||
"hitFlashMaterial": {
|
||||
"__uuid__": "8eee8ab1-fe48-4b22-b956-3f5c18fc4810",
|
||||
"__expectedType__": "cc.Material"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "d05NTLi3pF055eJmK0otVJ"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
@@ -319,14 +344,14 @@
|
||||
"__id__": 1
|
||||
},
|
||||
"_prefab": {
|
||||
"__id__": 13
|
||||
"__id__": 15
|
||||
},
|
||||
"__editorExtras__": {}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 12
|
||||
"__id__": 14
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "e1b8a315-ece3-41a2-941e-a66861753f1b",
|
||||
@@ -334,7 +359,7 @@
|
||||
},
|
||||
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
|
||||
"instance": {
|
||||
"__id__": 14
|
||||
"__id__": 16
|
||||
},
|
||||
"targetOverrides": null
|
||||
},
|
||||
@@ -347,15 +372,9 @@
|
||||
"mountedChildren": [],
|
||||
"mountedComponents": [],
|
||||
"propertyOverrides": [
|
||||
{
|
||||
"__id__": 15
|
||||
},
|
||||
{
|
||||
"__id__": 17
|
||||
},
|
||||
{
|
||||
"__id__": 18
|
||||
},
|
||||
{
|
||||
"__id__": 19
|
||||
},
|
||||
@@ -365,8 +384,14 @@
|
||||
{
|
||||
"__id__": 21
|
||||
},
|
||||
{
|
||||
"__id__": 22
|
||||
},
|
||||
{
|
||||
"__id__": 23
|
||||
},
|
||||
{
|
||||
"__id__": 25
|
||||
}
|
||||
],
|
||||
"removedComponents": []
|
||||
@@ -374,7 +399,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
"propertyPath": [
|
||||
"_name"
|
||||
@@ -390,7 +415,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lpos"
|
||||
@@ -405,7 +430,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lrot"
|
||||
@@ -421,7 +446,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
"propertyPath": [
|
||||
"_euler"
|
||||
@@ -436,7 +461,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
"propertyPath": [
|
||||
"_active"
|
||||
@@ -446,7 +471,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 22
|
||||
"__id__": 24
|
||||
},
|
||||
"propertyPath": [
|
||||
"_contentSize"
|
||||
@@ -466,7 +491,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lscale"
|
||||
@@ -485,14 +510,14 @@
|
||||
"__id__": 1
|
||||
},
|
||||
"_prefab": {
|
||||
"__id__": 25
|
||||
"__id__": 27
|
||||
},
|
||||
"__editorExtras__": {}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 24
|
||||
"__id__": 26
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "50c3d5e4-49f8-4bd7-a15b-cda359a0ae5c",
|
||||
@@ -500,7 +525,7 @@
|
||||
},
|
||||
"fileId": "5fqU0L3/FOhKaco5UkHuWT",
|
||||
"instance": {
|
||||
"__id__": 26
|
||||
"__id__": 28
|
||||
},
|
||||
"targetOverrides": null
|
||||
},
|
||||
@@ -513,23 +538,23 @@
|
||||
"mountedChildren": [],
|
||||
"mountedComponents": [],
|
||||
"propertyOverrides": [
|
||||
{
|
||||
"__id__": 27
|
||||
},
|
||||
{
|
||||
"__id__": 29
|
||||
},
|
||||
{
|
||||
"__id__": 30
|
||||
},
|
||||
{
|
||||
"__id__": 31
|
||||
},
|
||||
{
|
||||
"__id__": 32
|
||||
},
|
||||
{
|
||||
"__id__": 33
|
||||
},
|
||||
{
|
||||
"__id__": 34
|
||||
},
|
||||
{
|
||||
"__id__": 36
|
||||
}
|
||||
],
|
||||
"removedComponents": []
|
||||
@@ -537,7 +562,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 28
|
||||
"__id__": 30
|
||||
},
|
||||
"propertyPath": [
|
||||
"_name"
|
||||
@@ -553,7 +578,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 28
|
||||
"__id__": 30
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lpos"
|
||||
@@ -568,7 +593,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 28
|
||||
"__id__": 30
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lrot"
|
||||
@@ -584,7 +609,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 28
|
||||
"__id__": 30
|
||||
},
|
||||
"propertyPath": [
|
||||
"_euler"
|
||||
@@ -599,7 +624,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 33
|
||||
"__id__": 35
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lpos"
|
||||
@@ -620,7 +645,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 28
|
||||
"__id__": 30
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lscale"
|
||||
@@ -639,14 +664,14 @@
|
||||
"__id__": 1
|
||||
},
|
||||
"_prefab": {
|
||||
"__id__": 36
|
||||
"__id__": 38
|
||||
},
|
||||
"__editorExtras__": {}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 35
|
||||
"__id__": 37
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "5b4ca49e-0f12-4478-b56d-bf8198b36b90",
|
||||
@@ -654,7 +679,7 @@
|
||||
},
|
||||
"fileId": "0d6ZXmA5dHkZxoGONDL2sE",
|
||||
"instance": {
|
||||
"__id__": 37
|
||||
"__id__": 39
|
||||
},
|
||||
"targetOverrides": null
|
||||
},
|
||||
@@ -667,20 +692,20 @@
|
||||
"mountedChildren": [],
|
||||
"mountedComponents": [],
|
||||
"propertyOverrides": [
|
||||
{
|
||||
"__id__": 38
|
||||
},
|
||||
{
|
||||
"__id__": 40
|
||||
},
|
||||
{
|
||||
"__id__": 41
|
||||
},
|
||||
{
|
||||
"__id__": 42
|
||||
},
|
||||
{
|
||||
"__id__": 43
|
||||
},
|
||||
{
|
||||
"__id__": 44
|
||||
},
|
||||
{
|
||||
"__id__": 45
|
||||
}
|
||||
],
|
||||
"removedComponents": []
|
||||
@@ -688,7 +713,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 39
|
||||
"__id__": 41
|
||||
},
|
||||
"propertyPath": [
|
||||
"_name"
|
||||
@@ -704,7 +729,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 39
|
||||
"__id__": 41
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lpos"
|
||||
@@ -719,7 +744,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 39
|
||||
"__id__": 41
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lrot"
|
||||
@@ -735,7 +760,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 39
|
||||
"__id__": 41
|
||||
},
|
||||
"propertyPath": [
|
||||
"_euler"
|
||||
@@ -750,7 +775,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 39
|
||||
"__id__": 41
|
||||
},
|
||||
"propertyPath": [
|
||||
"_active"
|
||||
@@ -764,14 +789,14 @@
|
||||
"__id__": 1
|
||||
},
|
||||
"_prefab": {
|
||||
"__id__": 45
|
||||
"__id__": 47
|
||||
},
|
||||
"__editorExtras__": {}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 44
|
||||
"__id__": 46
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "ae4493bd-cbcc-4392-921c-3e2b0fcd5338",
|
||||
@@ -779,7 +804,7 @@
|
||||
},
|
||||
"fileId": "91yoyAQGNDm5ziI7NUChZ+",
|
||||
"instance": {
|
||||
"__id__": 46
|
||||
"__id__": 48
|
||||
},
|
||||
"targetOverrides": null
|
||||
},
|
||||
@@ -792,20 +817,20 @@
|
||||
"mountedChildren": [],
|
||||
"mountedComponents": [],
|
||||
"propertyOverrides": [
|
||||
{
|
||||
"__id__": 47
|
||||
},
|
||||
{
|
||||
"__id__": 49
|
||||
},
|
||||
{
|
||||
"__id__": 50
|
||||
},
|
||||
{
|
||||
"__id__": 51
|
||||
},
|
||||
{
|
||||
"__id__": 52
|
||||
},
|
||||
{
|
||||
"__id__": 53
|
||||
},
|
||||
{
|
||||
"__id__": 54
|
||||
}
|
||||
],
|
||||
"removedComponents": []
|
||||
@@ -813,7 +838,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 48
|
||||
"__id__": 50
|
||||
},
|
||||
"propertyPath": [
|
||||
"_name"
|
||||
@@ -829,7 +854,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 48
|
||||
"__id__": 50
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lpos"
|
||||
@@ -844,7 +869,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 48
|
||||
"__id__": 50
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lrot"
|
||||
@@ -860,7 +885,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 48
|
||||
"__id__": 50
|
||||
},
|
||||
"propertyPath": [
|
||||
"_euler"
|
||||
@@ -875,7 +900,7 @@
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 48
|
||||
"__id__": 50
|
||||
},
|
||||
"propertyPath": [
|
||||
"_active"
|
||||
@@ -892,7 +917,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 54
|
||||
"__id__": 56
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -920,7 +945,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 56
|
||||
"__id__": 58
|
||||
},
|
||||
"anm": {
|
||||
"__id__": 5
|
||||
@@ -941,7 +966,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 58
|
||||
"__id__": 60
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
@@ -959,7 +984,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 60
|
||||
"__id__": 62
|
||||
},
|
||||
"enabledContactListener": true,
|
||||
"bullet": false,
|
||||
@@ -993,7 +1018,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 62
|
||||
"__id__": 64
|
||||
},
|
||||
"tag": 0,
|
||||
"_group": 4,
|
||||
@@ -1030,16 +1055,16 @@
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": [
|
||||
{
|
||||
"__id__": 44
|
||||
"__id__": 46
|
||||
},
|
||||
{
|
||||
"__id__": 35
|
||||
"__id__": 37
|
||||
},
|
||||
{
|
||||
"__id__": 24
|
||||
"__id__": 26
|
||||
},
|
||||
{
|
||||
"__id__": 12
|
||||
"__id__": 14
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user