浏览代码

调整坐标

woso_javan 2 月之前
父节点
当前提交
9bb31049c4

+ 1 - 1
assets/module_storm_sunder/Script/Manager/Effect2DUIMgr.ts

@@ -83,7 +83,7 @@ export class Effect2DUIMgr {
         if (this.playerInfoMap.has(target)) {
             const existing = this.playerInfoMap.get(target);
             if (existing instanceof Node) {
-                this.setPlayerInfoPosition(existing, target, effectUI);
+                this.setPlayerInfoPosition(existing, target, effectUI, -100);
             }
             return; // 正在加载或已存在
         }

+ 3 - 3
assets/module_storm_sunder/Script/PkPropUI.ts

@@ -30,13 +30,13 @@ export class PkPropUI extends Component {
     //动画 从舞台左入场到中间 停顿0.5s后从中间到舞台右出场
     playPkPropAnimation() {
         // Reset initial position to left of screen
-        this.node.setPosition(-view.getVisibleSize().width - 100, 0);
+        this.node.setPosition(-view.getVisibleSize().width - 100, 200, 0);
 
         // Create animation sequence using tween
         const tween = new Tween(this.node)
-            .to(0.5, { position: new Vec3(0, 0, 0) }) // Move to center
+            .to(0.5, { position: new Vec3(0, 200, 0) }) // Move to center
             .delay(1) // Pause for 0.5 seconds
-            .to(0.5, { position: new Vec3(view.getVisibleSize().width + 100, 0, 0) }) // Move to right
+            .to(0.5, { position: new Vec3(view.getVisibleSize().width + 100, 200, 0) }) // Move to right
             .start();
     }