From fef54803221cbf3935e55f220e6fa0f01dc8f7fb Mon Sep 17 00:00:00 2001 From: panfudan Date: Fri, 1 Aug 2025 23:54:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E7=94=BB=E4=BD=8D=E7=BD=AE=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/gui/role_controller.prefab | 2 +- assets/script/game/map/MissionComp.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index 760157b9..dc05dc7f 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -93011,7 +93011,7 @@ } ], "_interactable": true, - "_transition": 0, + "_transition": 3, "_normalColor": { "__type__": "cc.Color", "r": 255, diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index 62567a9d..324d141a 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -1,4 +1,4 @@ -import { _decorator,Button,EventHandler,EventTouch,Label,NodeEventType,resources,Sprite,SpriteAtlas,tween,UITransform,v3, Vec3,Animation, UI, instantiate, Prefab } from "cc"; +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"; @@ -303,12 +303,12 @@ export class MissionComp extends CCComp { node.setScale(0,0,0) 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(0.5, { scale: v3(1,1,1), - position: v3(0,this.node.getChildByName("luckybox").position.y+200), + position: v3(0, height-300), }, {easing:"backOut"}) - .start(); + .start(); } private cleanComponents() { ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()});