diff --git a/assets/bundle1/images/BonusWuqi.png b/assets/bundle1/images/BonusWuqi.png new file mode 100644 index 0000000..6c43cc3 Binary files /dev/null and b/assets/bundle1/images/BonusWuqi.png differ diff --git a/assets/bundle1/images/BonusWuqi.png.meta b/assets/bundle1/images/BonusWuqi.png.meta new file mode 100644 index 0000000..f9467b7 --- /dev/null +++ b/assets/bundle1/images/BonusWuqi.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.27", + "importer": "image", + "imported": true, + "uuid": "f29bbed3-ea23-4394-90a6-5bb2b21c61db", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@6c48a", + "displayName": "BonusWuqi", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "f29bbed3-ea23-4394-90a6-5bb2b21c61db", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@f9941", + "displayName": "BonusWuqi", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimThreshold": 1, + "rotated": false, + "offsetX": 11.5, + "offsetY": -8, + "trimX": 50, + "trimY": 80, + "width": 563, + "height": 992, + "rawWidth": 640, + "rawHeight": 1136, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -281.5, + -496, + 0, + 281.5, + -496, + 0, + -281.5, + 496, + 0, + 281.5, + 496, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 50, + 1056, + 613, + 1056, + 50, + 64, + 613, + 64 + ], + "nuv": [ + 0.078125, + 0.056338028169014086, + 0.9578125, + 0.056338028169014086, + 0.078125, + 0.9295774647887324, + 0.9578125, + 0.9295774647887324 + ], + "minPos": [ + -281.5, + -496, + 0 + ], + "maxPos": [ + 281.5, + 496, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@6c48a", + "atlasUuid": "", + "trimType": "auto" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@6c48a" + } +} diff --git a/assets/scenes/main.scene b/assets/scenes/main.scene index 089dda8..598bf0c 100644 --- a/assets/scenes/main.scene +++ b/assets/scenes/main.scene @@ -52,7 +52,7 @@ }, "autoReleaseAssets": false, "_globals": { - "__id__": 171 + "__id__": 181 }, "_id": "58132e64-0171-4c7f-89be-a2984ca7de6b" }, @@ -75,40 +75,40 @@ "__id__": 43 }, { - "__id__": 53 + "__id__": 63 }, { - "__id__": 56 + "__id__": 66 }, { - "__id__": 70 + "__id__": 80 }, { - "__id__": 79 + "__id__": 89 }, { - "__id__": 88 + "__id__": 98 }, { - "__id__": 97 + "__id__": 107 }, { - "__id__": 106 + "__id__": 116 }, { - "__id__": 115 + "__id__": 125 }, { - "__id__": 124 + "__id__": 134 }, { - "__id__": 133 + "__id__": 143 }, { - "__id__": 142 + "__id__": 152 }, { - "__id__": 151 + "__id__": 161 }, { "__id__": 6 @@ -117,28 +117,28 @@ "__id__": 47 }, { - "__id__": 51 + "__id__": 61 }, { - "__id__": 160 + "__id__": 170 }, { - "__id__": 162 + "__id__": 172 }, { - "__id__": 165 + "__id__": 175 } ], "_active": true, "_components": [ { - "__id__": 169 + "__id__": 179 }, { "__id__": 46 }, { - "__id__": 170 + "__id__": 180 } ], "_prefab": null, @@ -1741,7 +1741,7 @@ "__id__": 42 }, "attackAudio": { - "__id__": 51 + "__id__": 61 }, "moveSpeed": 300, "mapWidth": 1080, @@ -1772,17 +1772,27 @@ "_parent": { "__id__": 2 }, - "_children": [], - "_active": false, - "_components": [ + "_children": [ { "__id__": 48 }, { - "__id__": 49 + "__id__": 51 }, { - "__id__": 50 + "__id__": 55 + } + ], + "_active": false, + "_components": [ + { + "__id__": 58 + }, + { + "__id__": 59 + }, + { + "__id__": 60 } ], "_prefab": null, @@ -1815,6 +1825,370 @@ }, "_id": "27LXfenohMBb7sdZ6QiNFj" }, + { + "__type__": "cc.Node", + "_name": "BonusWuqi", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 47 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 49 + }, + { + "__id__": 50 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -1.1368683772161603e-13, + "y": -2.2737367544323206e-13, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 2.367, + "y": 2.367, + "z": 2.367 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "48MV2w3MpOcoVUavsiuIDH" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 48 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 563, + "height": 992 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "53LpNLe5tIZ7RugGiaS8lV" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 48 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f29bbed3-ea23-4394-90a6-5bb2b21c61db@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "25m0zgmgJNBJjvJHAtSkq0" + }, + { + "__type__": "cc.Node", + "_name": "BonusAnim", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 47 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 52 + }, + { + "__id__": 53 + }, + { + "__id__": 54 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 5.684341886080802e-14, + "y": 1.1368683772161603e-13, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 0.632 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "4aK2e7KY5DUIHmLgjlO0jh" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 51 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 679, + "height": 915 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "78N2M7YsdEIZ1jNzcEyht+" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 51 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "ef0a4723-ab8e-481f-9567-e9b2a1400181@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "e64Xg5V7BPw7LzMLBUVqzL" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 51 + }, + "_enabled": true, + "__prefab": null, + "playOnLoad": true, + "_clips": [ + { + "__uuid__": "e22ce611-db61-41a0-a1ac-f568696a8b26", + "__expectedType__": "cc.AnimationClip" + } + ], + "_defaultClip": { + "__uuid__": "e22ce611-db61-41a0-a1ac-f568696a8b26", + "__expectedType__": "cc.AnimationClip" + }, + "_id": "9c331h/W9OfbUVO863HUta" + }, + { + "__type__": "cc.Node", + "_name": "Receive", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 47 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 56 + }, + { + "__id__": 57 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -21.138, + "y": -391.06, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "a2yUBF0eFJmpeT8QlDf8IR" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 55 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "c6UjN/7EtGKaT6dndLkqcx" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 55 + }, + "_enabled": true, + "__prefab": null, + "clickEvents": [], + "_interactable": true, + "_transition": 0, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "08k0TOrZdEYZ4Cqya0AsWE" + }, { "__type__": "cc.UITransform", "_name": "", @@ -1845,7 +2219,7 @@ "node": { "__id__": 47 }, - "_enabled": true, + "_enabled": false, "__prefab": null, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1884,7 +2258,7 @@ "node": { "__id__": 47 }, - "_enabled": true, + "_enabled": false, "__prefab": null, "playOnLoad": true, "_clips": [ @@ -1911,7 +2285,7 @@ "_active": true, "_components": [ { - "__id__": 52 + "__id__": 62 } ], "_prefab": null, @@ -1950,7 +2324,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 51 + "__id__": 61 }, "_enabled": true, "__prefab": null, @@ -1975,10 +2349,10 @@ "_active": true, "_components": [ { - "__id__": 54 + "__id__": 64 }, { - "__id__": 55 + "__id__": 65 } ], "_prefab": null, @@ -2017,7 +2391,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 53 + "__id__": 63 }, "_enabled": true, "__prefab": null, @@ -2039,7 +2413,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 53 + "__id__": 63 }, "_enabled": true, "__prefab": null, @@ -2061,22 +2435,22 @@ }, "_children": [ { - "__id__": 57 + "__id__": 67 }, { - "__id__": 60 + "__id__": 70 }, { - "__id__": 63 + "__id__": 73 }, { - "__id__": 66 + "__id__": 76 } ], "_active": true, "_components": [ { - "__id__": 69 + "__id__": 79 } ], "_prefab": null, @@ -2115,16 +2489,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 56 + "__id__": 66 }, "_children": [], "_active": true, "_components": [ { - "__id__": 58 + "__id__": 68 }, { - "__id__": 59 + "__id__": 69 } ], "_prefab": null, @@ -2163,7 +2537,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 57 + "__id__": 67 }, "_enabled": true, "__prefab": null, @@ -2185,7 +2559,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 57 + "__id__": 67 }, "_enabled": true, "__prefab": null, @@ -2224,16 +2598,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 56 + "__id__": 66 }, "_children": [], "_active": true, "_components": [ { - "__id__": 61 + "__id__": 71 }, { - "__id__": 62 + "__id__": 72 } ], "_prefab": null, @@ -2272,7 +2646,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 60 + "__id__": 70 }, "_enabled": true, "__prefab": null, @@ -2294,7 +2668,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 60 + "__id__": 70 }, "_enabled": true, "__prefab": null, @@ -2333,16 +2707,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 56 + "__id__": 66 }, "_children": [], "_active": true, "_components": [ { - "__id__": 64 + "__id__": 74 }, { - "__id__": 65 + "__id__": 75 } ], "_prefab": null, @@ -2381,7 +2755,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 63 + "__id__": 73 }, "_enabled": true, "__prefab": null, @@ -2403,7 +2777,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 63 + "__id__": 73 }, "_enabled": true, "__prefab": null, @@ -2442,16 +2816,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 56 + "__id__": 66 }, "_children": [], "_active": true, "_components": [ { - "__id__": 67 + "__id__": 77 }, { - "__id__": 68 + "__id__": 78 } ], "_prefab": null, @@ -2490,7 +2864,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 66 + "__id__": 76 }, "_enabled": true, "__prefab": null, @@ -2512,7 +2886,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 66 + "__id__": 76 }, "_enabled": true, "__prefab": null, @@ -2551,7 +2925,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 56 + "__id__": 66 }, "_enabled": true, "__prefab": null, @@ -2577,25 +2951,25 @@ }, "_children": [ { - "__id__": 71 + "__id__": 81 } ], "_active": true, "_components": [ { - "__id__": 74 + "__id__": 84 }, { - "__id__": 75 + "__id__": 85 }, { - "__id__": 76 + "__id__": 86 }, { - "__id__": 77 + "__id__": 87 }, { - "__id__": 78 + "__id__": 88 } ], "_prefab": null, @@ -2634,16 +3008,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 70 + "__id__": 80 }, "_children": [], "_active": true, "_components": [ { - "__id__": 72 + "__id__": 82 }, { - "__id__": 73 + "__id__": 83 } ], "_prefab": null, @@ -2682,7 +3056,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 71 + "__id__": 81 }, "_enabled": true, "__prefab": null, @@ -2704,7 +3078,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 71 + "__id__": 81 }, "_enabled": true, "__prefab": null, @@ -2766,7 +3140,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 70 + "__id__": 80 }, "_enabled": true, "__prefab": null, @@ -2788,7 +3162,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 70 + "__id__": 80 }, "_enabled": true, "__prefab": null, @@ -2827,7 +3201,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 70 + "__id__": 80 }, "_enabled": true, "__prefab": null, @@ -2858,7 +3232,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 70 + "__id__": 80 }, "_enabled": true, "__prefab": null, @@ -2886,7 +3260,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 70 + "__id__": 80 }, "_enabled": true, "__prefab": null, @@ -2918,25 +3292,25 @@ }, "_children": [ { - "__id__": 80 + "__id__": 90 } ], "_active": true, "_components": [ { - "__id__": 83 + "__id__": 93 }, { - "__id__": 84 + "__id__": 94 }, { - "__id__": 85 + "__id__": 95 }, { - "__id__": 86 + "__id__": 96 }, { - "__id__": 87 + "__id__": 97 } ], "_prefab": null, @@ -2975,16 +3349,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 79 + "__id__": 89 }, "_children": [], "_active": true, "_components": [ { - "__id__": 81 + "__id__": 91 }, { - "__id__": 82 + "__id__": 92 } ], "_prefab": null, @@ -3023,7 +3397,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 80 + "__id__": 90 }, "_enabled": true, "__prefab": null, @@ -3045,7 +3419,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 80 + "__id__": 90 }, "_enabled": true, "__prefab": null, @@ -3107,7 +3481,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 79 + "__id__": 89 }, "_enabled": true, "__prefab": null, @@ -3129,7 +3503,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 79 + "__id__": 89 }, "_enabled": true, "__prefab": null, @@ -3168,7 +3542,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 79 + "__id__": 89 }, "_enabled": true, "__prefab": null, @@ -3199,7 +3573,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 79 + "__id__": 89 }, "_enabled": true, "__prefab": null, @@ -3227,7 +3601,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 79 + "__id__": 89 }, "_enabled": true, "__prefab": null, @@ -3259,25 +3633,25 @@ }, "_children": [ { - "__id__": 89 + "__id__": 99 } ], "_active": true, "_components": [ { - "__id__": 92 + "__id__": 102 }, { - "__id__": 93 + "__id__": 103 }, { - "__id__": 94 + "__id__": 104 }, { - "__id__": 95 + "__id__": 105 }, { - "__id__": 96 + "__id__": 106 } ], "_prefab": null, @@ -3316,16 +3690,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 88 + "__id__": 98 }, "_children": [], "_active": true, "_components": [ { - "__id__": 90 + "__id__": 100 }, { - "__id__": 91 + "__id__": 101 } ], "_prefab": null, @@ -3364,7 +3738,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 89 + "__id__": 99 }, "_enabled": true, "__prefab": null, @@ -3386,7 +3760,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 89 + "__id__": 99 }, "_enabled": true, "__prefab": null, @@ -3448,7 +3822,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 88 + "__id__": 98 }, "_enabled": true, "__prefab": null, @@ -3470,7 +3844,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 88 + "__id__": 98 }, "_enabled": true, "__prefab": null, @@ -3509,7 +3883,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 88 + "__id__": 98 }, "_enabled": true, "__prefab": null, @@ -3540,7 +3914,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 88 + "__id__": 98 }, "_enabled": true, "__prefab": null, @@ -3568,7 +3942,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 88 + "__id__": 98 }, "_enabled": true, "__prefab": null, @@ -3600,25 +3974,25 @@ }, "_children": [ { - "__id__": 98 + "__id__": 108 } ], "_active": true, "_components": [ { - "__id__": 101 + "__id__": 111 }, { - "__id__": 102 + "__id__": 112 }, { - "__id__": 103 + "__id__": 113 }, { - "__id__": 104 + "__id__": 114 }, { - "__id__": 105 + "__id__": 115 } ], "_prefab": null, @@ -3657,16 +4031,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 97 + "__id__": 107 }, "_children": [], "_active": true, "_components": [ { - "__id__": 99 + "__id__": 109 }, { - "__id__": 100 + "__id__": 110 } ], "_prefab": null, @@ -3705,7 +4079,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 98 + "__id__": 108 }, "_enabled": true, "__prefab": null, @@ -3727,7 +4101,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 98 + "__id__": 108 }, "_enabled": true, "__prefab": null, @@ -3789,7 +4163,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 107 }, "_enabled": true, "__prefab": null, @@ -3811,7 +4185,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 107 }, "_enabled": true, "__prefab": null, @@ -3850,7 +4224,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 107 }, "_enabled": true, "__prefab": null, @@ -3881,7 +4255,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 107 }, "_enabled": true, "__prefab": null, @@ -3909,7 +4283,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 97 + "__id__": 107 }, "_enabled": true, "__prefab": null, @@ -3941,25 +4315,25 @@ }, "_children": [ { - "__id__": 107 + "__id__": 117 } ], "_active": true, "_components": [ { - "__id__": 110 + "__id__": 120 }, { - "__id__": 111 + "__id__": 121 }, { - "__id__": 112 + "__id__": 122 }, { - "__id__": 113 + "__id__": 123 }, { - "__id__": 114 + "__id__": 124 } ], "_prefab": null, @@ -3998,16 +4372,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 106 + "__id__": 116 }, "_children": [], "_active": true, "_components": [ { - "__id__": 108 + "__id__": 118 }, { - "__id__": 109 + "__id__": 119 } ], "_prefab": null, @@ -4046,7 +4420,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 107 + "__id__": 117 }, "_enabled": true, "__prefab": null, @@ -4068,7 +4442,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 107 + "__id__": 117 }, "_enabled": true, "__prefab": null, @@ -4130,7 +4504,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 106 + "__id__": 116 }, "_enabled": true, "__prefab": null, @@ -4152,7 +4526,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 106 + "__id__": 116 }, "_enabled": true, "__prefab": null, @@ -4191,7 +4565,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 106 + "__id__": 116 }, "_enabled": true, "__prefab": null, @@ -4222,7 +4596,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 106 + "__id__": 116 }, "_enabled": true, "__prefab": null, @@ -4250,7 +4624,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 106 + "__id__": 116 }, "_enabled": true, "__prefab": null, @@ -4282,25 +4656,25 @@ }, "_children": [ { - "__id__": 116 + "__id__": 126 } ], "_active": true, "_components": [ { - "__id__": 119 + "__id__": 129 }, { - "__id__": 120 + "__id__": 130 }, { - "__id__": 121 + "__id__": 131 }, { - "__id__": 122 + "__id__": 132 }, { - "__id__": 123 + "__id__": 133 } ], "_prefab": null, @@ -4339,16 +4713,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 115 + "__id__": 125 }, "_children": [], "_active": true, "_components": [ { - "__id__": 117 + "__id__": 127 }, { - "__id__": 118 + "__id__": 128 } ], "_prefab": null, @@ -4387,7 +4761,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 116 + "__id__": 126 }, "_enabled": true, "__prefab": null, @@ -4409,7 +4783,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 116 + "__id__": 126 }, "_enabled": true, "__prefab": null, @@ -4471,7 +4845,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 115 + "__id__": 125 }, "_enabled": true, "__prefab": null, @@ -4493,7 +4867,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 115 + "__id__": 125 }, "_enabled": true, "__prefab": null, @@ -4532,7 +4906,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 115 + "__id__": 125 }, "_enabled": true, "__prefab": null, @@ -4563,7 +4937,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 115 + "__id__": 125 }, "_enabled": true, "__prefab": null, @@ -4591,7 +4965,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 115 + "__id__": 125 }, "_enabled": true, "__prefab": null, @@ -4623,25 +4997,25 @@ }, "_children": [ { - "__id__": 125 + "__id__": 135 } ], "_active": true, "_components": [ { - "__id__": 128 + "__id__": 138 }, { - "__id__": 129 + "__id__": 139 }, { - "__id__": 130 + "__id__": 140 }, { - "__id__": 131 + "__id__": 141 }, { - "__id__": 132 + "__id__": 142 } ], "_prefab": null, @@ -4680,16 +5054,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 124 + "__id__": 134 }, "_children": [], "_active": true, "_components": [ { - "__id__": 126 + "__id__": 136 }, { - "__id__": 127 + "__id__": 137 } ], "_prefab": null, @@ -4728,7 +5102,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 125 + "__id__": 135 }, "_enabled": true, "__prefab": null, @@ -4750,7 +5124,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 125 + "__id__": 135 }, "_enabled": true, "__prefab": null, @@ -4812,7 +5186,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 124 + "__id__": 134 }, "_enabled": true, "__prefab": null, @@ -4834,7 +5208,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 124 + "__id__": 134 }, "_enabled": true, "__prefab": null, @@ -4873,7 +5247,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 124 + "__id__": 134 }, "_enabled": true, "__prefab": null, @@ -4904,7 +5278,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 124 + "__id__": 134 }, "_enabled": true, "__prefab": null, @@ -4932,7 +5306,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 124 + "__id__": 134 }, "_enabled": true, "__prefab": null, @@ -4964,25 +5338,25 @@ }, "_children": [ { - "__id__": 134 + "__id__": 144 } ], "_active": true, "_components": [ { - "__id__": 137 + "__id__": 147 }, { - "__id__": 138 + "__id__": 148 }, { - "__id__": 139 + "__id__": 149 }, { - "__id__": 140 + "__id__": 150 }, { - "__id__": 141 + "__id__": 151 } ], "_prefab": null, @@ -5021,16 +5395,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 133 + "__id__": 143 }, "_children": [], "_active": true, "_components": [ { - "__id__": 135 + "__id__": 145 }, { - "__id__": 136 + "__id__": 146 } ], "_prefab": null, @@ -5069,7 +5443,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 134 + "__id__": 144 }, "_enabled": true, "__prefab": null, @@ -5091,7 +5465,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 134 + "__id__": 144 }, "_enabled": true, "__prefab": null, @@ -5153,7 +5527,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 133 + "__id__": 143 }, "_enabled": true, "__prefab": null, @@ -5175,7 +5549,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 133 + "__id__": 143 }, "_enabled": true, "__prefab": null, @@ -5214,7 +5588,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 133 + "__id__": 143 }, "_enabled": true, "__prefab": null, @@ -5245,7 +5619,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 133 + "__id__": 143 }, "_enabled": true, "__prefab": null, @@ -5273,7 +5647,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 133 + "__id__": 143 }, "_enabled": true, "__prefab": null, @@ -5305,25 +5679,25 @@ }, "_children": [ { - "__id__": 143 + "__id__": 153 } ], "_active": true, "_components": [ { - "__id__": 146 + "__id__": 156 }, { - "__id__": 147 + "__id__": 157 }, { - "__id__": 148 + "__id__": 158 }, { - "__id__": 149 + "__id__": 159 }, { - "__id__": 150 + "__id__": 160 } ], "_prefab": null, @@ -5362,16 +5736,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 142 + "__id__": 152 }, "_children": [], "_active": true, "_components": [ { - "__id__": 144 + "__id__": 154 }, { - "__id__": 145 + "__id__": 155 } ], "_prefab": null, @@ -5410,7 +5784,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 143 + "__id__": 153 }, "_enabled": true, "__prefab": null, @@ -5432,7 +5806,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 143 + "__id__": 153 }, "_enabled": true, "__prefab": null, @@ -5494,7 +5868,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 142 + "__id__": 152 }, "_enabled": true, "__prefab": null, @@ -5516,7 +5890,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 142 + "__id__": 152 }, "_enabled": true, "__prefab": null, @@ -5555,7 +5929,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 142 + "__id__": 152 }, "_enabled": true, "__prefab": null, @@ -5586,7 +5960,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 142 + "__id__": 152 }, "_enabled": true, "__prefab": null, @@ -5614,7 +5988,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 142 + "__id__": 152 }, "_enabled": true, "__prefab": null, @@ -5646,25 +6020,25 @@ }, "_children": [ { - "__id__": 152 + "__id__": 162 } ], "_active": true, "_components": [ { - "__id__": 155 + "__id__": 165 }, { - "__id__": 156 + "__id__": 166 }, { - "__id__": 157 + "__id__": 167 }, { - "__id__": 158 + "__id__": 168 }, { - "__id__": 159 + "__id__": 169 } ], "_prefab": null, @@ -5703,16 +6077,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 151 + "__id__": 161 }, "_children": [], "_active": true, "_components": [ { - "__id__": 153 + "__id__": 163 }, { - "__id__": 154 + "__id__": 164 } ], "_prefab": null, @@ -5751,7 +6125,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 152 + "__id__": 162 }, "_enabled": true, "__prefab": null, @@ -5773,7 +6147,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 152 + "__id__": 162 }, "_enabled": true, "__prefab": null, @@ -5835,7 +6209,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 151 + "__id__": 161 }, "_enabled": true, "__prefab": null, @@ -5857,7 +6231,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 151 + "__id__": 161 }, "_enabled": true, "__prefab": null, @@ -5896,7 +6270,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 151 + "__id__": 161 }, "_enabled": true, "__prefab": null, @@ -5927,7 +6301,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 151 + "__id__": 161 }, "_enabled": true, "__prefab": null, @@ -5955,7 +6329,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 151 + "__id__": 161 }, "_enabled": true, "__prefab": null, @@ -5989,7 +6363,7 @@ "_active": true, "_components": [ { - "__id__": 161 + "__id__": 171 } ], "_prefab": null, @@ -6028,7 +6402,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 160 + "__id__": 170 }, "_enabled": true, "__prefab": null, @@ -6053,10 +6427,10 @@ "_active": true, "_components": [ { - "__id__": 163 + "__id__": 173 }, { - "__id__": 164 + "__id__": 174 } ], "_prefab": null, @@ -6095,7 +6469,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 162 + "__id__": 172 }, "_enabled": true, "__prefab": null, @@ -6117,7 +6491,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 162 + "__id__": 172 }, "_enabled": true, "__prefab": null, @@ -6141,13 +6515,13 @@ "_active": true, "_components": [ { - "__id__": 166 + "__id__": 176 }, { - "__id__": 167 + "__id__": 177 }, { - "__id__": 168 + "__id__": 178 } ], "_prefab": null, @@ -6186,7 +6560,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 165 + "__id__": 175 }, "_enabled": true, "__prefab": null, @@ -6208,7 +6582,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 165 + "__id__": 175 }, "_enabled": true, "__prefab": null, @@ -6231,7 +6605,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 165 + "__id__": 175 }, "_enabled": true, "__prefab": null, @@ -6319,28 +6693,28 @@ { "__type__": "cc.SceneGlobals", "ambient": { - "__id__": 172 + "__id__": 182 }, "shadows": { - "__id__": 173 + "__id__": 183 }, "_skybox": { - "__id__": 174 + "__id__": 184 }, "fog": { - "__id__": 175 + "__id__": 185 }, "octree": { - "__id__": 176 + "__id__": 186 }, "skin": { - "__id__": 177 + "__id__": 187 }, "lightProbeInfo": { - "__id__": 178 + "__id__": 188 }, "postSettings": { - "__id__": 179 + "__id__": 189 }, "bakedWithStationaryMainLight": false, "bakedWithHighpLightmap": false diff --git a/assets/scripts/PlayerController.ts b/assets/scripts/PlayerController.ts index 54ac627..904438c 100644 --- a/assets/scripts/PlayerController.ts +++ b/assets/scripts/PlayerController.ts @@ -64,6 +64,7 @@ export class PlayerController extends Component { } this.initProps(); + // this.showBonusPopup() } onDestroy() { @@ -692,6 +693,18 @@ export class PlayerController extends Component { // 添加弹窗出现动画 this.playBonusPopupAnimation(); + + // 监听领取按钮 + const receiveButton = this.bonus.getChildByName('Receive'); + const bonusWuqi = this.bonus.getChildByName('BonusWuqi'); + const bonusAnim = this.bonus.getChildByName('BonusAnim'); + console.log('this.bonus', this.bonus); + if (receiveButton) { + receiveButton.on('click', () => { + bonusAnim.active = false + bonusWuqi.active = true + }, this); + } } /**