From beffee8a689d056956bd2cc3da3fe752b1d3cfcd Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Fri, 30 May 2025 16:59:59 +0800 Subject: [PATCH] 1 --- .../HotFix/GameLogic/Manager/DataGameSceneManager.cs | 4 ++-- .../GameScripts/HotFix/GameLogic/UI/UIVipItem_Old.cs | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs index c7e4ec43..212eb3fa 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs @@ -521,12 +521,12 @@ namespace GameLogic var eGo = GameModule.Resource.LoadGameObject(giftConfig.EffectName); eGo.transform.SetParent(item.Value.GetRect().transform); //eGo.transform.position = actor.GetRect().transform.position; - eGo.transform.localPosition = new Vector3(500, 0, 0); + eGo.transform.localPosition = new Vector3(1500, 0, 0); eGo.transform.localScale = Vector3.one * 20; m_Buff1.m_EffectGo = eGo; // 移动特效 - eGo.transform.DOLocalMoveX(-2000, 12f).OnComplete(async () => + eGo.transform.DOLocalMoveX(-2000, 16f).OnComplete(async () => { GameObject.Destroy(eGo); }); diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIVipItem_Old.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIVipItem_Old.cs index b5724280..cabcd0ef 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIVipItem_Old.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIVipItem_Old.cs @@ -93,12 +93,11 @@ namespace GameLogic m_VideoPlayer.Play(); - HideVideo(); + //HideVideo(); } private async void HideVideo() { - await UniTask.Delay(2000); m_VideoPlayer.targetTexture.DiscardContents(); GameModule.UI.CloseUI(); GameModule.UI.ShowUI(UserDatas); @@ -106,9 +105,7 @@ namespace GameLogic private void HiddenVideoPlay(VideoPlayer player) { - // m_VideoPlayer.targetTexture.DiscardContents(); - // GameModule.UI.CloseUI(); - // GameModule.UI.ShowUI(UserDatas); + HideVideo(); }