From 05cf1728514a6229947f839c0a8d0c8d620900b9 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 26 九月 2025 18:10:05 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_scripts
---
Main/System/Battle/BattleHUDWin.cs | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/Main/System/Battle/BattleHUDWin.cs b/Main/System/Battle/BattleHUDWin.cs
index cb201c6..04c867c 100644
--- a/Main/System/Battle/BattleHUDWin.cs
+++ b/Main/System/Battle/BattleHUDWin.cs
@@ -89,18 +89,15 @@
content.SetDamage(damageInfo, () => RemoveDamageContent(content));
damageContentList.Add(content);
- // heroGo 鐨� parent 浣滀负鍙傝�冭妭鐐�
-
var heroRect = damageInfo.hurtObj.heroRectTrans;
if (heroRect == null)
return;
- // 璁$畻 heroGo 鍦� content 鐖惰妭鐐逛笅鐨� anchoredPosition
var contentRect = content.GetComponent<RectTransform>();
var contentParentRect = contentRect.parent as RectTransform;
- // 鑾峰彇 heroGo 鐨勪笘鐣屽潗鏍�
- Vector3 worldTargetPos = heroRect.TransformPoint(heroRect.anchoredPosition);
+ // 鑾峰彇 heroRect 鐨勪笘鐣屽潗鏍囷紙閿氱偣涓轰腑蹇冿級
+ Vector3 worldTargetPos = heroRect.transform.TransformPoint(heroRect.rect.center);
// 杞崲鍒� content 鐖惰妭鐐逛笅鐨� anchoredPosition
Vector2 anchoredPos;
--
Gitblit v1.8.0