From 82a32db629eed9d11609048de6f43ea32149c5e1 Mon Sep 17 00:00:00 2001 From: kongweiqiang Date: Thu, 5 Mar 2026 11:07:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?2026.3.5=20liveroom=20=E7=88=B1=E5=BF=83?= =?UTF-8?q?=E9=A3=9E=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua b/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua index ed55fe2bb..4e233881a 100644 --- a/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua +++ b/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua @@ -221,7 +221,7 @@ function UILiveRoomView:AddEventListener() function(data) local heart = data.heart local itemlua = self:GetCurrPageLua() - self:RefreshHeart(itemlua) + --self:RefreshHeart(itemlua) end) end @@ -2164,20 +2164,23 @@ function UILiveRoomView:Gen_FloatingHeart(itemlua) local screenWidth = UnityEngine.Screen.width local screenHeight = UnityEngine.Screen.height - local endPos = Vector2(-screenWidth+145-center.x, screenHeight-100-center.y) + local endPos = Vector2(-screenWidth+146-center.x, screenHeight-100-center.y) local item = self.FloatingHeart[id] item.transform.localPosition = Vector2(0,0) + item.transform.localScale = Vector3(1, 1, 1) local time1 = 0.5 local seq = DG.Tweening.DOTween.Sequence() seq:Append(item.transform:DOLocalMoveY(70, time1)) seq:Join(item.canvasGroup:DOFade(1, time1 * 0.6)) --seq:AppendInterval(0.3) - seq:Append(item.transform:DOLocalMove(endPos,2)) - seq:Append(item.canvasGroup:DOFade(0, time1)) + seq:Append(item.transform:DOLocalMove(endPos,1.5)) + seq:Join(item.transform:DOScale(Vector3(0.65,0.65,0.65), 1.2)) + seq:Append(item.canvasGroup:DOFade(0, time1*0.6)) seq:OnComplete(function() + self:RefreshHeart(itemlua) item.active = false end) end From 53c4bdca13cc64203c1e4c8d8bb218a6cfdee0c9 Mon Sep 17 00:00:00 2001 From: kongweiqiang Date: Thu, 5 Mar 2026 12:08:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?2026.3.5=20liveroom=20=E7=88=B1=E5=BF=83?= =?UTF-8?q?=E9=A3=9E=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua b/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua index 4e233881a..1b31d228a 100644 --- a/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua +++ b/Assets/Lua/UI/UILiveRoom/UILiveRoomView.lua @@ -2138,9 +2138,11 @@ function UILiveRoomView:Init_FloatingHeart(itemlua) v.active = false v.canvasGroup.alpha = 0 end + itemlua.floatingHeart:SetActive(true) end function UILiveRoomView:Gen_FloatingHeart(itemlua) + self.FloatingHeart = { [1] = itemlua.floatingHeart.item1, [2] = itemlua.floatingHeart.item2,