woso_javan 2 mesi fa
parent
commit
f9d167c9f7

+ 1 - 1
assets/module_storm_sunder/Prefabs/Storm.prefab

@@ -3295,7 +3295,7 @@
       "y": 0,
       "z": 0
     },
-    "_radius": 5,
+    "_radius": 3,
     "_height": 2,
     "_direction": 1,
     "_id": ""

+ 0 - 1
assets/module_storm_sunder/Script/Component/TornadoComponent.ts

@@ -104,7 +104,6 @@ export class TornadoComponent extends Component {
             const targetTornado = otherCollider.node.parent.getComponent(TornadoComponent);
             if (!targetTornado) return;
 
-            console.log(`击杀者:${event.selfCollider.name} ,受伤者:${event.otherCollider.name}`)
             if (this.currentLv > targetTornado.currentLv) {
                 this.curHitObj = targetTornado.node;
                 this.addExpByKill();

+ 11 - 2
assets/module_storm_sunder/Script/PkPropUI.ts

@@ -1,9 +1,10 @@
-import { Button, Component, Label, Node, NodeEventType, _decorator, find } from 'cc';
+import { Button, Component, Label, Node, NodeEventType, _decorator, find, view } from 'cc';
 import { AttributeBonusMgr } from './Manager/AttributeBonusMgr';
 import { EventDispatcher } from '../../core_tgx/easy_ui_framework/EventDispatcher';
 import { GameEvent } from './Enum/GameEvent';
 import { GameUtil } from './GameUtil';
 import { PlayerMgr } from './Manager/PlayerMgr';
+import { Tween, Vec3 } from 'cc';
 
 const { ccclass, property } = _decorator;
 
@@ -28,7 +29,15 @@ export class PkPropUI extends Component {
 
     //动画 从舞台左入场到中间 停顿0.5s后从中间到舞台右出场
     playPkPropAnimation() {
-
+        // Reset initial position to left of screen
+        this.node.setPosition(-view.getVisibleSize().width - 100, 0);
+
+        // Create animation sequence using tween
+        const tween = new Tween(this.node)
+            .to(0.5, { position: new Vec3(0, 0, 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
+            .start();
     }
 
 }