From 5bcf5e737bc0c1967debdfb5e0fed1360463268d Mon Sep 17 00:00:00 2001 From: panfudan Date: Mon, 11 Aug 2025 22:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E6=8E=89=20missioncomp?= =?UTF-8?q?=E7=9A=84=20=E6=8A=BD=E5=8D=A1=E7=9B=B8=E5=85=B3=E7=9A=84=20?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/game/map/map_rpg.prefab | 20 +- assets/resources/gui/role_controller.prefab | 2559 ++++++++++++----- .../script/game/common/SingletonModuleComp.ts | 12 +- assets/script/game/common/config/GameEvent.ts | 1 + assets/script/game/map/HeroReadyCom.ts | 12 +- assets/script/game/map/MissionComp copy.ts | 413 +++ .../script/game/map/MissionComp copy.ts.meta | 9 + assets/script/game/map/MissionComp.ts | 280 +- assets/script/game/map/MissionHeroComp.ts | 32 +- assets/script/game/map/MissionHomeComp.ts | 36 +- assets/script/game/map/MissionMonComp.ts | 11 +- assets/script/game/map/move.ts | 14 +- assets/script/game/skills/SkillCom.ts | 6 +- 13 files changed, 2344 insertions(+), 1061 deletions(-) create mode 100644 assets/script/game/map/MissionComp copy.ts create mode 100644 assets/script/game/map/MissionComp copy.ts.meta diff --git a/assets/resources/game/map/map_rpg.prefab b/assets/resources/game/map/map_rpg.prefab index a4aed7a2..fcecec72 100644 --- a/assets/resources/game/map/map_rpg.prefab +++ b/assets/resources/game/map/map_rpg.prefab @@ -452,7 +452,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 0, + "y": 1.436, "z": 0 }, "_lrot": { @@ -502,7 +502,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 189.827, + "y": 245.023, "z": 0 }, "_lrot": { @@ -515,7 +515,7 @@ "_lscale": { "__type__": "cc.Vec3", "x": 2, - "y": 2, + "y": 2.5, "z": 1 }, "_mobility": 0, @@ -3697,7 +3697,7 @@ "_isTrimmedMode": true, "_useGrayscale": false, "_atlas": null, - "_id": "75natGRyhKSoENwtP3+ep4" + "_id": "b66NtMUq9JsrMS7a2uXNZv" }, { "__type__": "cc.CompPrefabInfo", @@ -4006,7 +4006,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 110.616, - "y": -17.135, + "y": -18.025, "z": 0 }, "_lrot": { @@ -4142,7 +4142,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -134.722, - "y": -15.274, + "y": -18.025, "z": 0 }, "_lrot": { @@ -4278,7 +4278,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -245.406, - "y": -21.45, + "y": -18.025, "z": 0 }, "_lrot": { @@ -4414,7 +4414,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 312.578, - "y": -23.099, + "y": -18.025, "z": 0 }, "_lrot": { @@ -4550,7 +4550,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -340.809, - "y": -24.131, + "y": -18.025, "z": 0 }, "_lrot": { @@ -4686,7 +4686,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 323.966, - "y": -26.009, + "y": -18.025, "z": 0 }, "_lrot": { diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index 97e0c54e..3b63fcfe 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -25,23 +25,23 @@ "__id__": 239 }, { - "__id__": 584 + "__id__": 632 } ], "_active": true, "_components": [ { - "__id__": 624 + "__id__": 672 }, { - "__id__": 626 + "__id__": 674 }, { - "__id__": 628 + "__id__": 676 } ], "_prefab": { - "__id__": 630 + "__id__": 678 }, "_lpos": { "__type__": "cc.Vec3", @@ -5525,20 +5525,20 @@ "_active": true, "_components": [ { - "__id__": 575 + "__id__": 623 }, { - "__id__": 577 + "__id__": 625 }, { - "__id__": 579 + "__id__": 627 }, { - "__id__": 581 + "__id__": 629 } ], "_prefab": { - "__id__": 583 + "__id__": 631 }, "_lpos": { "__type__": "cc.Vec3", @@ -8791,26 +8791,26 @@ "__id__": 376 }, { - "__id__": 440 + "__id__": 456 }, { - "__id__": 504 + "__id__": 536 } ], "_active": true, "_components": [ { - "__id__": 568 + "__id__": 616 }, { - "__id__": 570 + "__id__": 618 }, { - "__id__": 572 + "__id__": 620 } ], "_prefab": { - "__id__": 574 + "__id__": 622 }, "_lpos": { "__type__": "cc.Vec3", @@ -8872,23 +8872,23 @@ "__id__": 413 }, { - "__id__": 421 - }, - { - "__id__": 427 - } - ], - "_active": true, - "_components": [ - { - "__id__": 435 + "__id__": 429 }, { "__id__": 437 } ], + "_active": true, + "_components": [ + { + "__id__": 451 + }, + { + "__id__": 453 + } + ], "_prefab": { - "__id__": 439 + "__id__": 455 }, "_lpos": { "__type__": "cc.Vec3", @@ -9735,6 +9735,373 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "add", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 376 + }, + "_children": [ + { + "__id__": 414 + }, + { + "__id__": 420 + } + ], + "_active": true, + "_components": [ + { + "__id__": 426 + } + ], + "_prefab": { + "__id__": 428 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -49.341, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "CardFrame_Rectangle_02_FrontGradient", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 413 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 415 + }, + { + "__id__": 417 + } + ], + "_prefab": { + "__id__": 419 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 12.468, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 414 + }, + "_enabled": true, + "__prefab": { + "__id__": 416 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3aGXcJVOVAQ63z9NUSNRUf" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 414 + }, + "_enabled": true, + "__prefab": { + "__id__": 418 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 253, + "g": 253, + "b": 0, + "a": 167 + }, + "_spriteFrame": { + "__uuid__": "6cd18ad7-7b15-43fc-b1bc-33a3973a6564@ad21a", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "05V8IZ5w5E77k++edbi2fd" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "72PSr4W+VGOJu246h3nJmL", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ResourceBar_01_Single_Add_Icon", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 413 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 421 + }, + { + "__id__": 423 + } + ], + "_prefab": { + "__id__": 425 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -8.425, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1.5, + "y": 1.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 420 + }, + "_enabled": true, + "__prefab": { + "__id__": 422 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 28, + "height": 28 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "489bks/LRCaYp/2T6EHF/Q" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 420 + }, + "_enabled": true, + "__prefab": { + "__id__": 424 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@51561", + "__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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "7fX2Mn0+tIu5nIyFHmuwg6" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "8cGqGf7fVP0p/lxUBJ0mBT", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 413 + }, + "_enabled": true, + "__prefab": { + "__id__": 427 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "28qVe8t1pPi5zjUYq07V5Q" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d9fXTcBHhE7aXMwm2B98wV", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.Node", "_name": "icon", @@ -9747,17 +10114,17 @@ "_active": true, "_components": [ { - "__id__": 414 + "__id__": 430 }, { - "__id__": 416 + "__id__": 432 }, { - "__id__": 418 + "__id__": 434 } ], "_prefab": { - "__id__": 420 + "__id__": 436 }, "_lpos": { "__type__": "cc.Vec3", @@ -9794,11 +10161,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 413 + "__id__": 429 }, "_enabled": true, "__prefab": { - "__id__": 415 + "__id__": 431 }, "_contentSize": { "__type__": "cc.Size", @@ -9822,11 +10189,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 413 + "__id__": 429 }, "_enabled": true, "__prefab": { - "__id__": 417 + "__id__": 433 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -9864,11 +10231,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 413 + "__id__": 429 }, "_enabled": true, "__prefab": { - "__id__": 419 + "__id__": 435 }, "playOnLoad": false, "_clips": [ @@ -9894,142 +10261,6 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.Node", - "_name": "Grade_Star", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 376 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 422 - }, - { - "__id__": 424 - } - ], - "_prefab": { - "__id__": 426 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -83.991, - "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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 421 - }, - "_enabled": true, - "__prefab": { - "__id__": 423 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 54, - "height": 55 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "7b6AAUCblCrJ1rHEkhgdZ5" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 421 - }, - "_enabled": true, - "__prefab": { - "__id__": 425 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@afbdf", - "__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": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "37AZoux2lLQ6k5YRuYfoMQ" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "e4l3iUkFZHfLKJU0C7nn5A", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, { "__type__": "cc.Node", "_name": "lv", @@ -10038,21 +10269,22 @@ "_parent": { "__id__": 376 }, - "_children": [], + "_children": [ + { + "__id__": 438 + } + ], "_active": true, "_components": [ { - "__id__": 428 + "__id__": 446 }, { - "__id__": 430 - }, - { - "__id__": 432 + "__id__": 448 } ], "_prefab": { - "__id__": 434 + "__id__": 450 }, "_lpos": { "__type__": "cc.Vec3", @@ -10083,17 +10315,70 @@ }, "_id": "" }, + { + "__type__": "cc.Node", + "_name": "num", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 437 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 439 + }, + { + "__id__": 441 + }, + { + "__id__": 443 + } + ], + "_prefab": { + "__id__": 445 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, { "__type__": "cc.UITransform", "_name": "", "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 427 + "__id__": 438 }, "_enabled": true, "__prefab": { - "__id__": 429 + "__id__": 440 }, "_contentSize": { "__type__": "cc.Size", @@ -10117,11 +10402,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 427 + "__id__": 438 }, "_enabled": true, "__prefab": { - "__id__": 431 + "__id__": 442 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -10185,11 +10470,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 427 + "__id__": 438 }, "_enabled": true, "__prefab": { - "__id__": 433 + "__id__": 444 }, "templateMode": false, "watchPath": "data.hero1.count", @@ -10214,6 +10499,92 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 437 + }, + "_enabled": true, + "__prefab": { + "__id__": 447 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 54, + "height": 55 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "7b6AAUCblCrJ1rHEkhgdZ5" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 437 + }, + "_enabled": true, + "__prefab": { + "__id__": 449 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@afbdf", + "__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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "37AZoux2lLQ6k5YRuYfoMQ" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "e4l3iUkFZHfLKJU0C7nn5A", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.UITransform", "_name": "", @@ -10224,7 +10595,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 436 + "__id__": 452 }, "_contentSize": { "__type__": "cc.Size", @@ -10252,7 +10623,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 438 + "__id__": 454 }, "slot": 0, "_id": "" @@ -10284,44 +10655,44 @@ }, "_children": [ { - "__id__": 441 + "__id__": 457 }, { - "__id__": 447 + "__id__": 463 }, { - "__id__": 453 + "__id__": 469 }, { - "__id__": 459 + "__id__": 475 }, { - "__id__": 465 + "__id__": 481 }, { - "__id__": 471 + "__id__": 487 }, { - "__id__": 477 + "__id__": 493 }, { - "__id__": 485 + "__id__": 509 }, { - "__id__": 491 + "__id__": 517 } ], "_active": true, "_components": [ { - "__id__": 499 + "__id__": 531 }, { - "__id__": 501 + "__id__": 533 } ], "_prefab": { - "__id__": 503 + "__id__": 535 }, "_lpos": { "__type__": "cc.Vec3", @@ -10358,20 +10729,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 440 + "__id__": 456 }, "_children": [], "_active": true, "_components": [ { - "__id__": 442 + "__id__": 458 }, { - "__id__": 444 + "__id__": 460 } ], "_prefab": { - "__id__": 446 + "__id__": 462 }, "_lpos": { "__type__": "cc.Vec3", @@ -10408,11 +10779,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 441 + "__id__": 457 }, "_enabled": true, "__prefab": { - "__id__": 443 + "__id__": 459 }, "_contentSize": { "__type__": "cc.Size", @@ -10436,11 +10807,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 441 + "__id__": 457 }, "_enabled": true, "__prefab": { - "__id__": 445 + "__id__": 461 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -10494,20 +10865,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 440 + "__id__": 456 }, "_children": [], "_active": false, "_components": [ { - "__id__": 448 + "__id__": 464 }, { - "__id__": 450 + "__id__": 466 } ], "_prefab": { - "__id__": 452 + "__id__": 468 }, "_lpos": { "__type__": "cc.Vec3", @@ -10544,11 +10915,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 447 + "__id__": 463 }, "_enabled": true, "__prefab": { - "__id__": 449 + "__id__": 465 }, "_contentSize": { "__type__": "cc.Size", @@ -10572,11 +10943,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 447 + "__id__": 463 }, "_enabled": true, "__prefab": { - "__id__": 451 + "__id__": 467 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -10630,20 +11001,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 440 + "__id__": 456 }, "_children": [], "_active": false, "_components": [ { - "__id__": 454 + "__id__": 470 }, { - "__id__": 456 + "__id__": 472 } ], "_prefab": { - "__id__": 458 + "__id__": 474 }, "_lpos": { "__type__": "cc.Vec3", @@ -10680,11 +11051,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 453 + "__id__": 469 }, "_enabled": true, "__prefab": { - "__id__": 455 + "__id__": 471 }, "_contentSize": { "__type__": "cc.Size", @@ -10708,11 +11079,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 453 + "__id__": 469 }, "_enabled": true, "__prefab": { - "__id__": 457 + "__id__": 473 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -10766,20 +11137,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 440 + "__id__": 456 }, "_children": [], "_active": true, "_components": [ { - "__id__": 460 + "__id__": 476 }, { - "__id__": 462 + "__id__": 478 } ], "_prefab": { - "__id__": 464 + "__id__": 480 }, "_lpos": { "__type__": "cc.Vec3", @@ -10816,11 +11187,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 459 + "__id__": 475 }, "_enabled": true, "__prefab": { - "__id__": 461 + "__id__": 477 }, "_contentSize": { "__type__": "cc.Size", @@ -10844,11 +11215,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 459 + "__id__": 475 }, "_enabled": true, "__prefab": { - "__id__": 463 + "__id__": 479 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -10902,20 +11273,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 440 + "__id__": 456 }, "_children": [], "_active": false, "_components": [ { - "__id__": 466 + "__id__": 482 }, { - "__id__": 468 + "__id__": 484 } ], "_prefab": { - "__id__": 470 + "__id__": 486 }, "_lpos": { "__type__": "cc.Vec3", @@ -10952,11 +11323,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 465 + "__id__": 481 }, "_enabled": true, "__prefab": { - "__id__": 467 + "__id__": 483 }, "_contentSize": { "__type__": "cc.Size", @@ -10980,11 +11351,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 465 + "__id__": 481 }, "_enabled": true, "__prefab": { - "__id__": 469 + "__id__": 485 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -11038,20 +11409,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 440 + "__id__": 456 }, "_children": [], "_active": false, "_components": [ { - "__id__": 472 + "__id__": 488 }, { - "__id__": 474 + "__id__": 490 } ], "_prefab": { - "__id__": 476 + "__id__": 492 }, "_lpos": { "__type__": "cc.Vec3", @@ -11088,11 +11459,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 471 + "__id__": 487 }, "_enabled": true, "__prefab": { - "__id__": 473 + "__id__": 489 }, "_contentSize": { "__type__": "cc.Size", @@ -11116,11 +11487,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 471 + "__id__": 487 }, "_enabled": true, "__prefab": { - "__id__": 475 + "__id__": 491 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -11170,27 +11541,394 @@ }, { "__type__": "cc.Node", - "_name": "icon", + "_name": "add", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 440 + "__id__": 456 + }, + "_children": [ + { + "__id__": 494 + }, + { + "__id__": 500 + } + ], + "_active": true, + "_components": [ + { + "__id__": 506 + } + ], + "_prefab": { + "__id__": 508 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -49.341, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "CardFrame_Rectangle_02_FrontGradient", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 493 }, "_children": [], "_active": true, "_components": [ { - "__id__": 478 + "__id__": 495 }, { - "__id__": 480 - }, - { - "__id__": 482 + "__id__": 497 } ], "_prefab": { - "__id__": 484 + "__id__": 499 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 12.468, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 494 + }, + "_enabled": true, + "__prefab": { + "__id__": 496 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5cJFgioLVEH57/Uh8wfiW+" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 494 + }, + "_enabled": true, + "__prefab": { + "__id__": 498 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 253, + "g": 253, + "b": 0, + "a": 167 + }, + "_spriteFrame": { + "__uuid__": "6cd18ad7-7b15-43fc-b1bc-33a3973a6564@ad21a", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "422pH4odBHvKTjerLvaVNS" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "ccG6+EUk9C8pw7c7iwKn2x", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ResourceBar_01_Single_Add_Icon", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 493 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 501 + }, + { + "__id__": 503 + } + ], + "_prefab": { + "__id__": 505 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -8.425, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1.5, + "y": 1.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 500 + }, + "_enabled": true, + "__prefab": { + "__id__": 502 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 28, + "height": 28 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "54yAmeB4tC8pLsH4MZWuBy" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 500 + }, + "_enabled": true, + "__prefab": { + "__id__": 504 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@51561", + "__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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "89P5Ky7uJNP5bTnWmdj9XO" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "61g733X39AC5KRGhrHvpgA", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 493 + }, + "_enabled": true, + "__prefab": { + "__id__": 507 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "bdBb82UpBC8K47MYRPWFFj" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "14NsD9bkNLHJugK31ukuzW", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "icon", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 456 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 510 + }, + { + "__id__": 512 + }, + { + "__id__": 514 + } + ], + "_prefab": { + "__id__": 516 }, "_lpos": { "__type__": "cc.Vec3", @@ -11227,11 +11965,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 477 + "__id__": 509 }, "_enabled": true, "__prefab": { - "__id__": 479 + "__id__": 511 }, "_contentSize": { "__type__": "cc.Size", @@ -11255,11 +11993,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 477 + "__id__": 509 }, "_enabled": true, "__prefab": { - "__id__": 481 + "__id__": 513 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -11297,11 +12035,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 477 + "__id__": 509 }, "_enabled": true, "__prefab": { - "__id__": 483 + "__id__": 515 }, "playOnLoad": false, "_clips": [ @@ -11327,165 +12065,30 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.Node", - "_name": "Grade_Star", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 440 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 486 - }, - { - "__id__": 488 - } - ], - "_prefab": { - "__id__": 490 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -83.991, - "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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 485 - }, - "_enabled": true, - "__prefab": { - "__id__": 487 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 54, - "height": 55 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "05B0K37vVP5I/9BLzSZQUS" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 485 - }, - "_enabled": true, - "__prefab": { - "__id__": 489 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@afbdf", - "__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": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "78PwVQfpdFFIFx56oXiRG/" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "14piDjRWhAj7Nol0DbOV25", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, { "__type__": "cc.Node", "_name": "lv", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 440 + "__id__": 456 }, - "_children": [], + "_children": [ + { + "__id__": 518 + } + ], "_active": true, "_components": [ { - "__id__": 492 + "__id__": 526 }, { - "__id__": 494 - }, - { - "__id__": 496 + "__id__": 528 } ], "_prefab": { - "__id__": 498 + "__id__": 530 }, "_lpos": { "__type__": "cc.Vec3", @@ -11516,17 +12119,70 @@ }, "_id": "" }, + { + "__type__": "cc.Node", + "_name": "num", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 517 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 519 + }, + { + "__id__": 521 + }, + { + "__id__": 523 + } + ], + "_prefab": { + "__id__": 525 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, { "__type__": "cc.UITransform", "_name": "", "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 491 + "__id__": 518 }, "_enabled": true, "__prefab": { - "__id__": 493 + "__id__": 520 }, "_contentSize": { "__type__": "cc.Size", @@ -11550,11 +12206,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 491 + "__id__": 518 }, "_enabled": true, "__prefab": { - "__id__": 495 + "__id__": 522 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -11618,11 +12274,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 491 + "__id__": 518 }, "_enabled": true, "__prefab": { - "__id__": 497 + "__id__": 524 }, "templateMode": false, "watchPath": "data.hero1.count", @@ -11653,11 +12309,97 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 440 + "__id__": 517 }, "_enabled": true, "__prefab": { - "__id__": 500 + "__id__": 527 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 54, + "height": 55 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "05B0K37vVP5I/9BLzSZQUS" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 517 + }, + "_enabled": true, + "__prefab": { + "__id__": 529 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@afbdf", + "__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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "78PwVQfpdFFIFx56oXiRG/" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "14piDjRWhAj7Nol0DbOV25", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 456 + }, + "_enabled": true, + "__prefab": { + "__id__": 532 }, "_contentSize": { "__type__": "cc.Size", @@ -11681,13 +12423,13 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 440 + "__id__": 456 }, "_enabled": true, "__prefab": { - "__id__": 502 + "__id__": 534 }, - "slot": 0, + "slot": 1, "_id": "" }, { @@ -11717,44 +12459,44 @@ }, "_children": [ { - "__id__": 505 + "__id__": 537 }, { - "__id__": 511 - }, - { - "__id__": 517 - }, - { - "__id__": 523 - }, - { - "__id__": 529 - }, - { - "__id__": 535 - }, - { - "__id__": 541 + "__id__": 543 }, { "__id__": 549 }, { "__id__": 555 + }, + { + "__id__": 561 + }, + { + "__id__": 567 + }, + { + "__id__": 573 + }, + { + "__id__": 589 + }, + { + "__id__": 597 } ], "_active": true, "_components": [ { - "__id__": 563 + "__id__": 611 }, { - "__id__": 565 + "__id__": 613 } ], "_prefab": { - "__id__": 567 + "__id__": 615 }, "_lpos": { "__type__": "cc.Vec3", @@ -11791,20 +12533,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 504 + "__id__": 536 }, "_children": [], "_active": true, "_components": [ { - "__id__": 506 + "__id__": 538 }, { - "__id__": 508 + "__id__": 540 } ], "_prefab": { - "__id__": 510 + "__id__": 542 }, "_lpos": { "__type__": "cc.Vec3", @@ -11841,11 +12583,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 505 + "__id__": 537 }, "_enabled": true, "__prefab": { - "__id__": 507 + "__id__": 539 }, "_contentSize": { "__type__": "cc.Size", @@ -11869,11 +12611,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 505 + "__id__": 537 }, "_enabled": true, "__prefab": { - "__id__": 509 + "__id__": 541 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -11927,20 +12669,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 504 + "__id__": 536 }, "_children": [], "_active": false, "_components": [ { - "__id__": 512 + "__id__": 544 }, { - "__id__": 514 + "__id__": 546 } ], "_prefab": { - "__id__": 516 + "__id__": 548 }, "_lpos": { "__type__": "cc.Vec3", @@ -11977,11 +12719,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 511 + "__id__": 543 }, "_enabled": true, "__prefab": { - "__id__": 513 + "__id__": 545 }, "_contentSize": { "__type__": "cc.Size", @@ -12005,11 +12747,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 511 + "__id__": 543 }, "_enabled": true, "__prefab": { - "__id__": 515 + "__id__": 547 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -12063,20 +12805,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 504 + "__id__": 536 }, "_children": [], "_active": false, "_components": [ { - "__id__": 518 + "__id__": 550 }, { - "__id__": 520 + "__id__": 552 } ], "_prefab": { - "__id__": 522 + "__id__": 554 }, "_lpos": { "__type__": "cc.Vec3", @@ -12113,11 +12855,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 517 + "__id__": 549 }, "_enabled": true, "__prefab": { - "__id__": 519 + "__id__": 551 }, "_contentSize": { "__type__": "cc.Size", @@ -12141,11 +12883,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 517 + "__id__": 549 }, "_enabled": true, "__prefab": { - "__id__": 521 + "__id__": 553 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -12199,20 +12941,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 504 + "__id__": 536 }, "_children": [], "_active": true, "_components": [ { - "__id__": 524 + "__id__": 556 }, { - "__id__": 526 + "__id__": 558 } ], "_prefab": { - "__id__": 528 + "__id__": 560 }, "_lpos": { "__type__": "cc.Vec3", @@ -12249,11 +12991,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 523 + "__id__": 555 }, "_enabled": true, "__prefab": { - "__id__": 525 + "__id__": 557 }, "_contentSize": { "__type__": "cc.Size", @@ -12277,11 +13019,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 523 + "__id__": 555 }, "_enabled": true, "__prefab": { - "__id__": 527 + "__id__": 559 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -12335,20 +13077,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 504 + "__id__": 536 }, "_children": [], "_active": false, "_components": [ { - "__id__": 530 + "__id__": 562 }, { - "__id__": 532 + "__id__": 564 } ], "_prefab": { - "__id__": 534 + "__id__": 566 }, "_lpos": { "__type__": "cc.Vec3", @@ -12385,11 +13127,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 529 + "__id__": 561 }, "_enabled": true, "__prefab": { - "__id__": 531 + "__id__": 563 }, "_contentSize": { "__type__": "cc.Size", @@ -12413,11 +13155,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 529 + "__id__": 561 }, "_enabled": true, "__prefab": { - "__id__": 533 + "__id__": 565 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -12471,20 +13213,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 504 + "__id__": 536 }, "_children": [], "_active": false, "_components": [ { - "__id__": 536 + "__id__": 568 }, { - "__id__": 538 + "__id__": 570 } ], "_prefab": { - "__id__": 540 + "__id__": 572 }, "_lpos": { "__type__": "cc.Vec3", @@ -12521,11 +13263,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 535 + "__id__": 567 }, "_enabled": true, "__prefab": { - "__id__": 537 + "__id__": 569 }, "_contentSize": { "__type__": "cc.Size", @@ -12549,11 +13291,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 535 + "__id__": 567 }, "_enabled": true, "__prefab": { - "__id__": 539 + "__id__": 571 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -12603,27 +13345,394 @@ }, { "__type__": "cc.Node", - "_name": "icon", + "_name": "add", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 504 + "__id__": 536 + }, + "_children": [ + { + "__id__": 574 + }, + { + "__id__": 580 + } + ], + "_active": true, + "_components": [ + { + "__id__": 586 + } + ], + "_prefab": { + "__id__": 588 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -49.341, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "CardFrame_Rectangle_02_FrontGradient", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 573 }, "_children": [], "_active": true, "_components": [ { - "__id__": 542 + "__id__": 575 }, { - "__id__": 544 - }, - { - "__id__": 546 + "__id__": 577 } ], "_prefab": { - "__id__": 548 + "__id__": 579 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 12.468, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 574 + }, + "_enabled": true, + "__prefab": { + "__id__": 576 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "30fxZlp0pG1aUhCRyFZJfB" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 574 + }, + "_enabled": true, + "__prefab": { + "__id__": 578 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 253, + "g": 253, + "b": 0, + "a": 167 + }, + "_spriteFrame": { + "__uuid__": "6cd18ad7-7b15-43fc-b1bc-33a3973a6564@ad21a", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "dd3NDjIClMvar9N4YibsvN" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f0j59p14dAoIAsraMNT9jP", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ResourceBar_01_Single_Add_Icon", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 573 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 581 + }, + { + "__id__": 583 + } + ], + "_prefab": { + "__id__": 585 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -8.425, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1.5, + "y": 1.5, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 580 + }, + "_enabled": true, + "__prefab": { + "__id__": 582 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 28, + "height": 28 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "73FpaAsjdCpJevuDlhVEfi" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 580 + }, + "_enabled": true, + "__prefab": { + "__id__": 584 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@51561", + "__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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "7dhhYWx2hIoZj49APe8pQr" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "35L+vbynhOdLTQ2kpwK2eK", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 573 + }, + "_enabled": true, + "__prefab": { + "__id__": 587 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2dspa5QlZKMJjsZySb2Cqk" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "65b/IUPmtMgqm9JYu9BogR", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "icon", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 536 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 590 + }, + { + "__id__": 592 + }, + { + "__id__": 594 + } + ], + "_prefab": { + "__id__": 596 }, "_lpos": { "__type__": "cc.Vec3", @@ -12660,11 +13769,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 541 + "__id__": 589 }, "_enabled": true, "__prefab": { - "__id__": 543 + "__id__": 591 }, "_contentSize": { "__type__": "cc.Size", @@ -12688,11 +13797,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 541 + "__id__": 589 }, "_enabled": true, "__prefab": { - "__id__": 545 + "__id__": 593 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -12730,11 +13839,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 541 + "__id__": 589 }, "_enabled": true, "__prefab": { - "__id__": 547 + "__id__": 595 }, "playOnLoad": false, "_clips": [ @@ -12760,165 +13869,30 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.Node", - "_name": "Grade_Star", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 504 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 550 - }, - { - "__id__": 552 - } - ], - "_prefab": { - "__id__": 554 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -83.991, - "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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 549 - }, - "_enabled": true, - "__prefab": { - "__id__": 551 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 54, - "height": 55 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2bmXbPgYBKiLBbzLshzcvy" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 549 - }, - "_enabled": true, - "__prefab": { - "__id__": 553 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@afbdf", - "__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": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "3fl4i7JtlJZ6c9zmdl2gkM" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "59ZCe/oTtMlY5o8FRsxCpV", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, { "__type__": "cc.Node", "_name": "lv", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 504 + "__id__": 536 }, - "_children": [], - "_active": true, + "_children": [ + { + "__id__": 598 + } + ], + "_active": false, "_components": [ { - "__id__": 556 + "__id__": 606 }, { - "__id__": 558 - }, - { - "__id__": 560 + "__id__": 608 } ], "_prefab": { - "__id__": 562 + "__id__": 610 }, "_lpos": { "__type__": "cc.Vec3", @@ -12949,17 +13923,70 @@ }, "_id": "" }, + { + "__type__": "cc.Node", + "_name": "num", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 597 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 599 + }, + { + "__id__": 601 + }, + { + "__id__": 603 + } + ], + "_prefab": { + "__id__": 605 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, { "__type__": "cc.UITransform", "_name": "", "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 555 + "__id__": 598 }, "_enabled": true, "__prefab": { - "__id__": 557 + "__id__": 600 }, "_contentSize": { "__type__": "cc.Size", @@ -12983,11 +14010,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 555 + "__id__": 598 }, "_enabled": true, "__prefab": { - "__id__": 559 + "__id__": 602 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -13051,11 +14078,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 555 + "__id__": 598 }, "_enabled": true, "__prefab": { - "__id__": 561 + "__id__": 604 }, "templateMode": false, "watchPath": "data.hero1.count", @@ -13086,11 +14113,97 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 504 + "__id__": 597 }, "_enabled": true, "__prefab": { - "__id__": 564 + "__id__": 607 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 54, + "height": 55 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2bmXbPgYBKiLBbzLshzcvy" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 597 + }, + "_enabled": true, + "__prefab": { + "__id__": 609 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "49c583b3-d566-4c79-9e4c-bd0ca4a4b717@afbdf", + "__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": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3fl4i7JtlJZ6c9zmdl2gkM" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "59ZCe/oTtMlY5o8FRsxCpV", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 536 + }, + "_enabled": true, + "__prefab": { + "__id__": 612 }, "_contentSize": { "__type__": "cc.Size", @@ -13114,13 +14227,13 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 504 + "__id__": 536 }, "_enabled": true, "__prefab": { - "__id__": 566 + "__id__": 614 }, - "slot": 0, + "slot": 2, "_id": "" }, { @@ -13150,7 +14263,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 569 + "__id__": 617 }, "_contentSize": { "__type__": "cc.Size", @@ -13178,7 +14291,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 571 + "__id__": 619 }, "_alignFlags": 45, "_target": null, @@ -13214,7 +14327,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 573 + "__id__": 621 }, "_resizeMode": 2, "_layoutType": 1, @@ -13265,7 +14378,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 576 + "__id__": 624 }, "_contentSize": { "__type__": "cc.Size", @@ -13293,7 +14406,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 578 + "__id__": 626 }, "_alignFlags": 20, "_target": null, @@ -13329,7 +14442,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 580 + "__id__": 628 }, "_id": "" }, @@ -13347,7 +14460,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 582 + "__id__": 630 }, "_alignFlags": 45, "_target": null, @@ -13396,32 +14509,32 @@ }, "_children": [ { - "__id__": 585 + "__id__": 633 }, { - "__id__": 593 + "__id__": 641 }, { - "__id__": 601 + "__id__": 649 }, { - "__id__": 609 + "__id__": 657 } ], "_active": false, "_components": [ { - "__id__": 617 + "__id__": 665 }, { - "__id__": 619 + "__id__": 667 }, { - "__id__": 621 + "__id__": 669 } ], "_prefab": { - "__id__": 623 + "__id__": 671 }, "_lpos": { "__type__": "cc.Vec3", @@ -13458,23 +14571,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 584 + "__id__": 632 }, "_children": [], "_active": true, "_components": [ { - "__id__": 586 + "__id__": 634 }, { - "__id__": 588 + "__id__": 636 }, { - "__id__": 590 + "__id__": 638 } ], "_prefab": { - "__id__": 592 + "__id__": 640 }, "_lpos": { "__type__": "cc.Vec3", @@ -13511,11 +14624,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 585 + "__id__": 633 }, "_enabled": true, "__prefab": { - "__id__": 587 + "__id__": 635 }, "_contentSize": { "__type__": "cc.Size", @@ -13539,11 +14652,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 585 + "__id__": 633 }, "_enabled": true, "__prefab": { - "__id__": 589 + "__id__": 637 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -13584,11 +14697,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 585 + "__id__": 633 }, "_enabled": true, "__prefab": { - "__id__": 591 + "__id__": 639 }, "_alignFlags": 45, "_target": null, @@ -13633,23 +14746,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 584 + "__id__": 632 }, "_children": [], "_active": true, "_components": [ { - "__id__": 594 + "__id__": 642 }, { - "__id__": 596 + "__id__": 644 }, { - "__id__": 598 + "__id__": 646 } ], "_prefab": { - "__id__": 600 + "__id__": 648 }, "_lpos": { "__type__": "cc.Vec3", @@ -13686,11 +14799,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 593 + "__id__": 641 }, "_enabled": true, "__prefab": { - "__id__": 595 + "__id__": 643 }, "_contentSize": { "__type__": "cc.Size", @@ -13714,11 +14827,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 593 + "__id__": 641 }, "_enabled": true, "__prefab": { - "__id__": 597 + "__id__": 645 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -13759,11 +14872,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 593 + "__id__": 641 }, "_enabled": true, "__prefab": { - "__id__": 599 + "__id__": 647 }, "_alignFlags": 45, "_target": null, @@ -13808,23 +14921,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 584 + "__id__": 632 }, "_children": [], "_active": true, "_components": [ { - "__id__": 602 + "__id__": 650 }, { - "__id__": 604 + "__id__": 652 }, { - "__id__": 606 + "__id__": 654 } ], "_prefab": { - "__id__": 608 + "__id__": 656 }, "_lpos": { "__type__": "cc.Vec3", @@ -13861,11 +14974,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 601 + "__id__": 649 }, "_enabled": true, "__prefab": { - "__id__": 603 + "__id__": 651 }, "_contentSize": { "__type__": "cc.Size", @@ -13889,11 +15002,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 601 + "__id__": 649 }, "_enabled": true, "__prefab": { - "__id__": 605 + "__id__": 653 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -13934,11 +15047,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 601 + "__id__": 649 }, "_enabled": true, "__prefab": { - "__id__": 607 + "__id__": 655 }, "playOnLoad": true, "_clips": [ @@ -13976,23 +15089,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 584 + "__id__": 632 }, "_children": [], "_active": true, "_components": [ { - "__id__": 610 + "__id__": 658 }, { - "__id__": 612 + "__id__": 660 }, { - "__id__": 614 + "__id__": 662 } ], "_prefab": { - "__id__": 616 + "__id__": 664 }, "_lpos": { "__type__": "cc.Vec3", @@ -14029,11 +15142,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 609 + "__id__": 657 }, "_enabled": true, "__prefab": { - "__id__": 611 + "__id__": 659 }, "_contentSize": { "__type__": "cc.Size", @@ -14057,11 +15170,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 609 + "__id__": 657 }, "_enabled": true, "__prefab": { - "__id__": 613 + "__id__": 661 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -14102,11 +15215,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 609 + "__id__": 657 }, "_enabled": true, "__prefab": { - "__id__": 615 + "__id__": 663 }, "playOnLoad": true, "_clips": [ @@ -14144,11 +15257,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 584 + "__id__": 632 }, "_enabled": true, "__prefab": { - "__id__": 618 + "__id__": 666 }, "_contentSize": { "__type__": "cc.Size", @@ -14172,11 +15285,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 584 + "__id__": 632 }, "_enabled": true, "__prefab": { - "__id__": 620 + "__id__": 668 }, "_alignFlags": 45, "_target": null, @@ -14208,11 +15321,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 584 + "__id__": 632 }, "_enabled": true, "__prefab": { - "__id__": 622 + "__id__": 670 }, "_id": "" }, @@ -14243,7 +15356,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 625 + "__id__": 673 }, "_contentSize": { "__type__": "cc.Size", @@ -14271,7 +15384,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 627 + "__id__": 675 }, "_alignFlags": 45, "_target": null, @@ -14307,7 +15420,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 629 + "__id__": 677 }, "_id": "" }, diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index 2cda48f7..356c77d1 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -21,14 +21,18 @@ export class SingletonModuleComp extends ecs.Comp { in_select:false, score:888, }; - fight_heros={ - 0:0, - 1:0, + fight_heros:any={ + 0:5001, + 1:5005, 2:0, 3:0, 4:0, } - heros:any = []; + heros:any = { + 5001:{lv:1}, + 5005:{lv:1}, + 5007:{lv:1}, + }; monsters:any = []; sk_info:any = [] monsters_dead:any = [] diff --git a/assets/script/game/common/config/GameEvent.ts b/assets/script/game/common/config/GameEvent.ts index 1e53d0e4..fecb138d 100644 --- a/assets/script/game/common/config/GameEvent.ts +++ b/assets/script/game/common/config/GameEvent.ts @@ -14,6 +14,7 @@ export enum GameEvent { LoginSuccess = "LoginSuccess", MAP_MOVE_END_LEFT = "MAP_MOVE_END_LEFT", MAP_MOVE_END_RIGHT = "MAP_MOVE_END_RIGHT", + UpdateHero = "UpdateHero", MSSelected = "MSSelected", LifeChange = "LifeChange", CastSkill = "CastSkill", diff --git a/assets/script/game/map/HeroReadyCom.ts b/assets/script/game/map/HeroReadyCom.ts index d8b66e47..e67f8f83 100644 --- a/assets/script/game/map/HeroReadyCom.ts +++ b/assets/script/game/map/HeroReadyCom.ts @@ -1,6 +1,8 @@ -import { _decorator, Animation, AnimationClip, CCInteger, Component, Node, resources } from 'cc'; +import { _decorator, Animation, AnimationClip, CCInteger, Component, Label, Node, resources } from 'cc'; import { smc } from '../common/SingletonModuleComp'; import { HeroInfo } from '../common/config/heroSet'; +import { GameEvent } from '../common/config/GameEvent'; +import { oops } from 'db://oops-framework/core/Oops'; const { ccclass, property } = _decorator; @ccclass('HeroReadyCom') @@ -10,6 +12,7 @@ export class HeroReadyCom extends Component { start() { this.update_hero() + oops.message.on(GameEvent.UpdateHero,this.update_hero,this) } update(deltaTime: number) { @@ -18,8 +21,10 @@ export class HeroReadyCom extends Component { update_hero(){ let hero = smc.fight_heros[this.slot] if(hero==0){ + this.no_hero() return } + this.node.getChildByName("add").active=false let hero_data = HeroInfo[hero] console.log("[HeroReadyCom]hero_data",smc.fight_heros,hero,smc.fight_heros[this.slot],this.slot,hero_data) let anm_path=hero_data.path @@ -27,9 +32,14 @@ export class HeroReadyCom extends Component { this.node.getChildByName("icon").getComponent(Animation).addClip(clip); this.node.getChildByName("icon").getComponent(Animation).play("idle"); }); + this.node.getChildByName("lv").getChildByName("num").getComponent(Label).string=smc.heros[hero].lv.toString() // console.log("[HeroReadyCom]clip",this.node.getChildByName("icon").getComponent(Animation)) } + no_hero(){ + this.node.getChildByName("lv").active=false + this.node.getChildByName("add").active=true + } } diff --git a/assets/script/game/map/MissionComp copy.ts b/assets/script/game/map/MissionComp copy.ts new file mode 100644 index 00000000..8b8fe7b0 --- /dev/null +++ b/assets/script/game/map/MissionComp copy.ts @@ -0,0 +1,413 @@ +import { _decorator,Button,EventHandler,EventTouch,Label,NodeEventType,resources,Sprite,SpriteAtlas,tween,UITransform,v3, Vec3,Animation, UI, instantiate, Prefab, screen } from "cc"; +import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; +import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; +import { smc } from "../common/SingletonModuleComp"; +import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; +import { FightSet, HeroUI, MissionData, VmInfo} from "../common/config/Mission"; +import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer"; +import { GameEvent } from "../common/config/GameEvent"; +import { HeroViewComp } from "../hero/HeroViewComp"; +import { Hero } from "../hero/Hero"; +import { defaultEnhancements, EnhancementOptions } from "../common/config/LevelUp"; +import { MonModelComp } from "../hero/MonModelComp"; +import { TalentSlot } from "../common/config/TalentSet"; +import { RogueTalWave } from "./RogueConfig"; +import { cardType, getRandomCardsByType, SuperCards, SuperCardsList, SuperCardsType } from "../common/config/CardSet"; +import { LuckCardComp } from "./LuckCardComp"; +const { ccclass, property } = _decorator; + + +//@todo this is a test + +/** 视图层对象 */ +@ccclass('MissionComp') +@ecs.register('MissionComp', false) +export class MissionComp extends CCComp { + // VictoryComp:any = null; + // reward:number = 0; + // reward_num:number = 0; + GlodAddTimer:Timer = new Timer(1); + normal_max_wave:number = 10; + is_fight:boolean = false; + enhancements:any=[0,0,0,0,0] + update_count:number = 0; + is_show_time:boolean = false; + time_num:number = 0; + time_cd:Timer=new Timer(1); + + next_func?:Function; + wave_time_num:number = 0; + wave_time_cd:Timer=new Timer(1); + is_in_wave:boolean = false; + tals:any={ + 0:false, + 1:false, + 2:false, + 3:false, + 4:false, + 5:false, + } + heros:any={ + 0:{uuid:0,count:0}, + 1:{uuid:0,count:0}, + 2:{uuid:0,count:0}, + } + func_queue:any=[] + + + onLoad(){ + this.on(GameEvent.MissionStart,this.mission_start,this) + this.on(GameEvent.MasterCalled,this.ready_to_fight,this) + // this.on(GameEvent.CardsClose,this.after_used_skill_card,this) + this.on(GameEvent.MonDead,this.do_mon_dead,this) + + this.on(GameEvent.FightEnd,this.fight_end,this) + this.on(GameEvent.MissionEnd,this.mission_end,this) + this.on(GameEvent.DO_AD_BACK,this.do_ad,this) + // this.on(GameEvent.CanUpdateLv,this.show_uplv_button,this) + this.on(GameEvent.UseHeroCard,this.hero_called,this) + } + + protected update(dt: number): void { + if(!smc.mission.play||smc.mission.pause){ + return + } + if(smc.vmdata.mission_data.in_fight){ + smc.vmdata.mission_data.fight_time+=dt + if(this.GlodAddTimer.update(dt)){ + smc.vmdata.mission_data.gold+=(smc.vmdata.mission_data.add_gold+smc.vmdata.mission_data.buff_add_gold) + } + } + if(this.is_show_time){ + if(this.time_cd.update(dt)){ + this.run_time() + } + } + // if(this.is_in_wave){ + // if(this.wave_time_cd.update(dt)){ + // smc.vmdata.mission_data.wave_time_num-- + // if(smc.vmdata.mission_data.wave_time_num<=0){ + // this.hide_wave_time() + // this.show_time(this.do_next_wave.bind(this)) + // } + // } + // } + } + //奖励发放 + do_reward(){ + // 奖励发放 + } + hero_called(event: any, data: any) { + // 查找空位或已存在的英雄 + const heroIndex = this.findHeroSlot(data.uuid); + + if (heroIndex !== -1) { + // 找到英雄位置,增加数量 + this.heros[heroIndex].count += 1; + } else { + // 查找空位 + const emptySlot = this.findEmptySlot(); + if (emptySlot !== -1) { + // 有空位,添加新英雄 + this.heros[emptySlot].uuid = data.uuid; + this.heros[emptySlot].count = 1; + } else { + console.log("[MissionComp] 英雄已满"); + } + } + } + + /** + * 查找英雄位置 + * @param uuid 英雄UUID + * @returns 英雄索引,未找到返回-1 + */ + private findHeroSlot(uuid: number): number { + for (let i = 0; i < 3; i++) { + if (this.heros[i].uuid === uuid) { + return i; + } + } + return -1; + } + + /** + * 查找空位 + * @returns 空位索引,无空位返回-1 + */ + private findEmptySlot(): number { + for (let i = 0; i < 3; i++) { + if (this.heros[i].uuid === 0) { + return i; + } + } + return -1; + } + + count_tal(){ + let count=0 + for(let i=0;i{ + loading.active=false + this.node.getChildByName("ending").active=false + },0.5) + this.to_ready() + + + } + to_ready(){ + console.log("[MissionComp] ** 2 ** to_ready") + oops.message.dispatchEvent(GameEvent.HeroSelect,{called:[]}) + } + ready_to_fight(){ + console.log("[MissionComp] ** 3 ** ready_to_fight") + this.time_num=5 + this.show_time(this.to_fight.bind(this)) + } + // show_uplv_button(){ + // this.update_count++ + // this.node.getChildByName("uplv").active=true + // } + // hide_uplv_button(){ + // this.update_count-- + // if(this.update_count > 0) return + // this.node.getChildByName("uplv").active=false + // } + // to_uplv(){ + // oops.message.dispatchEvent(GameEvent.EnhancementSelect) + // } + to_call_friend(){ + let called = Object.values(this.heros).filter((item: any) => item.uuid != 0) + oops.message.dispatchEvent(GameEvent.HeroSelect,{called:called}) + } + + to_fight(){ + console.log("[MissionComp] ** 4 ** to_fight") + smc.vmdata.mission_data.in_fight=true + oops.message.dispatchEvent(GameEvent.FightStart) //MissionMonComp 监听刷怪 + this.do_next_wave() + } + + + to_end_fight(){ + oops.message.dispatchEvent(GameEvent.FightEnd) + } + + + fight_end(){ + console.log("任务结束") + this.node.getChildByName("ending").active=true + this.node.getChildByName("ending").getComponent(Animation).play("endFight") + // 延迟0.5秒后执行任务结束逻辑 + this.scheduleOnce(() => { + smc.mission.play=false + smc.mission.pause=false + this.cleanComponents() + }, 0.5) + } + + mission_end(){ + this.node.getChildByName("ending").active=false + this.node.active=false + } + + data_init(){ + //局内数据初始化 smc 数据初始化 + smc.mission.play = true; + smc.vmdata.mission_data = JSON.parse(JSON.stringify(MissionData)); + smc.vmdata.hero = JSON.parse(JSON.stringify(VmInfo)); + smc.vmdata.boss = JSON.parse(JSON.stringify(VmInfo)); + this.update_count=0 + this.GlodAddTimer=new Timer(smc.vmdata.mission_data.refrsh_time) + smc.enhancements=defaultEnhancements() + this.heros={ + 0:{uuid:0,count:0}, + 1:{uuid:0,count:0}, + 2:{uuid:0,count:0}, + } + + this.clear_time() + this.hide_wave_time() + this.tals={ + 0:false, + 1:false, + 2:false, + 3:false, + 4:false, + 5:false, + } + smc.vmdata.mission_data.wave_time_num=FightSet.ONE_WAVE_TIME + console.log("局内数据初始化",smc.enhancements,defaultEnhancements()) + + } + + + card_init(){ + oops.message.dispatchEvent(GameEvent.CardRefresh) + } + + card_refresh(){ + let mission_data=smc.vmdata.mission_data + if(mission_data.gold < (mission_data.refresh_gold+mission_data.buff_refresh_gold)){ + oops.gui.toast("金币不足", false); + return + } + oops.message.dispatchEvent(GameEvent.CardRefresh) + mission_data.gold-=(mission_data.refresh_gold+mission_data.buff_refresh_gold) + + } + call_friend_card(){ + oops.message.dispatchEvent(GameEvent.HeroSelect) + } + call_tal_card(){ + oops.message.dispatchEvent(GameEvent.TalentSelect) + } + call_func_card(){ + if(smc.vmdata.mission_data.gold < smc.vmdata.mission_data.lucky_gold){ + oops.gui.toast("金币不足", false); + return + } + this.do_lucky_card() + + } + do_lucky_card(){ + smc.vmdata.mission_data.gold-=smc.vmdata.mission_data.lucky_gold + let list=getRandomCardsByType(cardType.SPECIAL,1) + let card=SuperCards[list[0].uuid] + console.log("[MissionComp] do_lucky_card",card) + this.show_lucky_gold(card) + oops.message.dispatchEvent(GameEvent.LuckCardUsed,card) + } + show_lucky_gold(card:any){ + // this.node.getChildByName("luckybox").getComponent(Animation).play("luckyopen") + var path = "game/gui/lcard"; + var prefab: Prefab = oops.res.get(path, Prefab)!; + var node = instantiate(prefab); + node.setScale(0,0,0) + node.getComponent(LuckCardComp).show_card(card) + node.parent = this.node + node.setPosition(v3(this.node.getChildByName("luckybox").position.x,this.node.getChildByName("luckybox").position.y)); + let height=this.node.getComponent(UITransform).height + tween(node) .to(1, { + scale: v3(1,1,1), + position: v3(0, height-300), + }, {easing:"backOut"}) + .start(); + + } + private cleanComponents() { + smc.vmdata.hero1=JSON.parse(JSON.stringify(HeroUI)) + smc.vmdata.hero2=JSON.parse(JSON.stringify(HeroUI)) + smc.vmdata.hero3=JSON.parse(JSON.stringify(HeroUI)) + ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()}); + } + + + /** 视图层逻辑代码分离演示 */ + + /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ + reset() { + this.node.destroy(); + } +} \ No newline at end of file diff --git a/assets/script/game/map/MissionComp copy.ts.meta b/assets/script/game/map/MissionComp copy.ts.meta new file mode 100644 index 00000000..245e7fe7 --- /dev/null +++ b/assets/script/game/map/MissionComp copy.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "d8d095e8-6cd9-4fe1-a9cc-bffcf04e0346", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index 0a5f31d2..0e11dcce 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -7,13 +7,6 @@ import { FightSet, HeroUI, MissionData, VmInfo} from "../common/config/Mission"; import { Timer } from "../../../../extensions/oops-plugin-framework/assets/core/common/timer/Timer"; import { GameEvent } from "../common/config/GameEvent"; import { HeroViewComp } from "../hero/HeroViewComp"; -import { Hero } from "../hero/Hero"; -import { defaultEnhancements, EnhancementOptions } from "../common/config/LevelUp"; -import { MonModelComp } from "../hero/MonModelComp"; -import { TalentSlot } from "../common/config/TalentSet"; -import { RogueTalWave } from "./RogueConfig"; -import { cardType, getRandomCardsByType, SuperCards, SuperCardsList, SuperCardsType } from "../common/config/CardSet"; -import { LuckCardComp } from "./LuckCardComp"; const { ccclass, property } = _decorator; @@ -26,134 +19,31 @@ export class MissionComp extends CCComp { // VictoryComp:any = null; // reward:number = 0; // reward_num:number = 0; - GlodAddTimer:Timer = new Timer(1); - normal_max_wave:number = 10; - is_fight:boolean = false; - enhancements:any=[0,0,0,0,0] - update_count:number = 0; - is_show_time:boolean = false; - time_num:number = 0; - time_cd:Timer=new Timer(1); - - next_func?:Function; - wave_time_num:number = 0; - wave_time_cd:Timer=new Timer(1); - is_in_wave:boolean = false; - tals:any={ - 0:false, - 1:false, - 2:false, - 3:false, - 4:false, - 5:false, - } - heros:any={ - 0:{uuid:0,count:0}, - 1:{uuid:0,count:0}, - 2:{uuid:0,count:0}, - } - func_queue:any=[] - + onLoad(){ this.on(GameEvent.MissionStart,this.mission_start,this) - this.on(GameEvent.MasterCalled,this.ready_to_fight,this) - // this.on(GameEvent.CardsClose,this.after_used_skill_card,this) this.on(GameEvent.MonDead,this.do_mon_dead,this) this.on(GameEvent.FightEnd,this.fight_end,this) this.on(GameEvent.MissionEnd,this.mission_end,this) this.on(GameEvent.DO_AD_BACK,this.do_ad,this) // this.on(GameEvent.CanUpdateLv,this.show_uplv_button,this) - this.on(GameEvent.UseHeroCard,this.hero_called,this) } - protected update(dt: number): void { if(!smc.mission.play||smc.mission.pause){ return } if(smc.vmdata.mission_data.in_fight){ smc.vmdata.mission_data.fight_time+=dt - if(this.GlodAddTimer.update(dt)){ - smc.vmdata.mission_data.gold+=(smc.vmdata.mission_data.add_gold+smc.vmdata.mission_data.buff_add_gold) - } + } - if(this.is_show_time){ - if(this.time_cd.update(dt)){ - this.run_time() - } - } - // if(this.is_in_wave){ - // if(this.wave_time_cd.update(dt)){ - // smc.vmdata.mission_data.wave_time_num-- - // if(smc.vmdata.mission_data.wave_time_num<=0){ - // this.hide_wave_time() - // this.show_time(this.do_next_wave.bind(this)) - // } - // } - // } } //奖励发放 do_reward(){ // 奖励发放 } - hero_called(event: any, data: any) { - // 查找空位或已存在的英雄 - const heroIndex = this.findHeroSlot(data.uuid); - - if (heroIndex !== -1) { - // 找到英雄位置,增加数量 - this.heros[heroIndex].count += 1; - } else { - // 查找空位 - const emptySlot = this.findEmptySlot(); - if (emptySlot !== -1) { - // 有空位,添加新英雄 - this.heros[emptySlot].uuid = data.uuid; - this.heros[emptySlot].count = 1; - } else { - console.log("[MissionComp] 英雄已满"); - } - } - } - - /** - * 查找英雄位置 - * @param uuid 英雄UUID - * @returns 英雄索引,未找到返回-1 - */ - private findHeroSlot(uuid: number): number { - for (let i = 0; i < 3; i++) { - if (this.heros[i].uuid === uuid) { - return i; - } - } - return -1; - } - - /** - * 查找空位 - * @returns 空位索引,无空位返回-1 - */ - private findEmptySlot(): number { - for (let i = 0; i < 3; i++) { - if (this.heros[i].uuid === 0) { - return i; - } - } - return -1; - } - count_tal(){ - let count=0 - for(let i=0;i 0) return - // this.node.getChildByName("uplv").active=false - // } - // to_uplv(){ - // oops.message.dispatchEvent(GameEvent.EnhancementSelect) - // } - to_call_friend(){ - let called = Object.values(this.heros).filter((item: any) => item.uuid != 0) - oops.message.dispatchEvent(GameEvent.HeroSelect,{called:called}) - } - + to_fight(){ - console.log("[MissionComp] ** 4 ** to_fight") + console.log("[MissionComp] ** 3 ** to_fight") smc.vmdata.mission_data.in_fight=true oops.message.dispatchEvent(GameEvent.FightStart) //MissionMonComp 监听刷怪 - this.do_next_wave() } @@ -316,86 +127,9 @@ export class MissionComp extends CCComp { //局内数据初始化 smc 数据初始化 smc.mission.play = true; smc.vmdata.mission_data = JSON.parse(JSON.stringify(MissionData)); - smc.vmdata.hero = JSON.parse(JSON.stringify(VmInfo)); - smc.vmdata.boss = JSON.parse(JSON.stringify(VmInfo)); - this.update_count=0 - this.GlodAddTimer=new Timer(smc.vmdata.mission_data.refrsh_time) - smc.enhancements=defaultEnhancements() - this.heros={ - 0:{uuid:0,count:0}, - 1:{uuid:0,count:0}, - 2:{uuid:0,count:0}, - } - - this.clear_time() - this.hide_wave_time() - this.tals={ - 0:false, - 1:false, - 2:false, - 3:false, - 4:false, - 5:false, - } - smc.vmdata.mission_data.wave_time_num=FightSet.ONE_WAVE_TIME - console.log("局内数据初始化",smc.enhancements,defaultEnhancements()) - + console.log("局内数据初始化") } - - card_init(){ - oops.message.dispatchEvent(GameEvent.CardRefresh) - } - - card_refresh(){ - let mission_data=smc.vmdata.mission_data - if(mission_data.gold < (mission_data.refresh_gold+mission_data.buff_refresh_gold)){ - oops.gui.toast("金币不足", false); - return - } - oops.message.dispatchEvent(GameEvent.CardRefresh) - mission_data.gold-=(mission_data.refresh_gold+mission_data.buff_refresh_gold) - - } - call_friend_card(){ - oops.message.dispatchEvent(GameEvent.HeroSelect) - } - call_tal_card(){ - oops.message.dispatchEvent(GameEvent.TalentSelect) - } - call_func_card(){ - if(smc.vmdata.mission_data.gold < smc.vmdata.mission_data.lucky_gold){ - oops.gui.toast("金币不足", false); - return - } - this.do_lucky_card() - - } - do_lucky_card(){ - smc.vmdata.mission_data.gold-=smc.vmdata.mission_data.lucky_gold - let list=getRandomCardsByType(cardType.SPECIAL,1) - let card=SuperCards[list[0].uuid] - console.log("[MissionComp] do_lucky_card",card) - this.show_lucky_gold(card) - oops.message.dispatchEvent(GameEvent.LuckCardUsed,card) - } - show_lucky_gold(card:any){ - // this.node.getChildByName("luckybox").getComponent(Animation).play("luckyopen") - var path = "game/gui/lcard"; - var prefab: Prefab = oops.res.get(path, Prefab)!; - var node = instantiate(prefab); - node.setScale(0,0,0) - node.getComponent(LuckCardComp).show_card(card) - node.parent = this.node - node.setPosition(v3(this.node.getChildByName("luckybox").position.x,this.node.getChildByName("luckybox").position.y)); - let height=this.node.getComponent(UITransform).height - tween(node) .to(1, { - scale: v3(1,1,1), - position: v3(0, height-300), - }, {easing:"backOut"}) - .start(); - - } private cleanComponents() { smc.vmdata.hero1=JSON.parse(JSON.stringify(HeroUI)) smc.vmdata.hero2=JSON.parse(JSON.stringify(HeroUI)) diff --git a/assets/script/game/map/MissionHeroComp.ts b/assets/script/game/map/MissionHeroComp.ts index 675a6bfc..612f178f 100644 --- a/assets/script/game/map/MissionHeroComp.ts +++ b/assets/script/game/map/MissionHeroComp.ts @@ -26,21 +26,34 @@ export class MissionHeroCompComp extends CCComp { this.on(GameEvent.UseHeroCard,this.call_hero,this) this.on(GameEvent.FightReady,this.fight_ready,this) this.on(GameEvent.Zhaohuan,this.zhao_huan,this) + this.on(GameEvent.FightEnd,this.clear_heros,this) } start() { // this.test_call() } + clear_heros(){ + console.log("[MissionHeroComp]: FightEnd clear heros") + + } fight_ready(){ - this.heros=[] - for(let i=0;i(Hero); let scale = 1 diff --git a/assets/script/game/map/MissionHomeComp.ts b/assets/script/game/map/MissionHomeComp.ts index 399d96ca..83d601b0 100644 --- a/assets/script/game/map/MissionHomeComp.ts +++ b/assets/script/game/map/MissionHomeComp.ts @@ -12,49 +12,27 @@ const { ccclass, property } = _decorator; @ecs.register('MissionHome', false) export class MissionHomeComp extends CCComp { - heros:any[]=[]; - heros_pos:any=[ - {uuid:0,px:-100}, - {uuid:0,px:-200}, - {uuid:0,px:-300}, - ] + protected onLoad(): void { this.on(GameEvent.MissionEnd,this.mission_end,this) } /** 视图层逻辑代码分离演示 */ start() { - // var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象 - // this.on(ModuleEvent.Cmd, this.onHandler, this); - this.load_ui_heros() - + this.home_active() } - - to_start(){ - - } - + start_mission() { - for(let i=0;i= this.maxX) { this.node.setPosition(this.minX, this.node.position.y); - this.isMove=false + this.isMove=0 oops.message.dispatchEvent(GameEvent.MAP_MOVE_END_LEFT) } } else if (this.sc < 0) { // 从右到左移动,到达左边界后回到右边界 if (this.node.position.x <= this.minX) { this.node.setPosition(this.maxX, this.node.position.y); - this.isMove=false + this.isMove=0 oops.message.dispatchEvent(GameEvent.MAP_MOVE_END_RIGHT) } } diff --git a/assets/script/game/skills/SkillCom.ts b/assets/script/game/skills/SkillCom.ts index 7a5f9475..d2b7ff4d 100644 --- a/assets/script/game/skills/SkillCom.ts +++ b/assets/script/game/skills/SkillCom.ts @@ -67,12 +67,12 @@ export class SkillCom extends CCComp { // 缓存技能配置,避免重复查找 this.skillConfig = SkillSet[this.s_uuid]; if (!this.skillConfig) { - console.error("[SkillCom] 技能配置不存在:", this.s_uuid); + // console.error("[SkillCom] 技能配置不存在:", this.s_uuid); return; } this.isInitialized = true; - console.log("[SkillCom] 技能配置初始化完成:", this.s_uuid, this.skillConfig.name); + // console.log("[SkillCom] 技能配置初始化完成:", this.s_uuid, this.skillConfig.name); } start() { @@ -157,7 +157,7 @@ export class SkillCom extends CCComp { } } onAnimationFinished(){ - console.log("[SkillCom]:onAnimationFinished",this.s_uuid) + // console.log("[SkillCom]:onAnimationFinished",this.s_uuid) if (!this.skillConfig) return; if(this.skillConfig.EType==EType.timeEnd) return