This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-30 16:59:59 +08:00
parent db5a31c73f
commit beffee8a68
2 changed files with 4 additions and 7 deletions

View File

@ -521,12 +521,12 @@ namespace GameLogic
var eGo = GameModule.Resource.LoadGameObject(giftConfig.EffectName); var eGo = GameModule.Resource.LoadGameObject(giftConfig.EffectName);
eGo.transform.SetParent(item.Value.GetRect().transform); eGo.transform.SetParent(item.Value.GetRect().transform);
//eGo.transform.position = actor.GetRect().transform.position; //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; eGo.transform.localScale = Vector3.one * 20;
m_Buff1.m_EffectGo = eGo; m_Buff1.m_EffectGo = eGo;
// 移动特效 // 移动特效
eGo.transform.DOLocalMoveX(-2000, 12f).OnComplete(async () => eGo.transform.DOLocalMoveX(-2000, 16f).OnComplete(async () =>
{ {
GameObject.Destroy(eGo); GameObject.Destroy(eGo);
}); });

View File

@ -93,12 +93,11 @@ namespace GameLogic
m_VideoPlayer.Play(); m_VideoPlayer.Play();
HideVideo(); //HideVideo();
} }
private async void HideVideo() private async void HideVideo()
{ {
await UniTask.Delay(2000);
m_VideoPlayer.targetTexture.DiscardContents(); m_VideoPlayer.targetTexture.DiscardContents();
GameModule.UI.CloseUI<UIVipItem_Old>(); GameModule.UI.CloseUI<UIVipItem_Old>();
GameModule.UI.ShowUI<UIVipItem>(UserDatas); GameModule.UI.ShowUI<UIVipItem>(UserDatas);
@ -106,9 +105,7 @@ namespace GameLogic
private void HiddenVideoPlay(VideoPlayer player) private void HiddenVideoPlay(VideoPlayer player)
{ {
// m_VideoPlayer.targetTexture.DiscardContents(); HideVideo();
// GameModule.UI.CloseUI<UIVipItem_Old>();
// GameModule.UI.ShowUI<UIVipItem>(UserDatas);
} }