Browse Source

抽奖闪退问题

zhangyuqian 9 months ago
parent
commit
fb791e5d61

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxVideoView.cs

@@ -121,9 +121,11 @@ namespace GFGGame
 
 
         public void Hide()
         public void Hide()
         {
         {
+            videoPlayer.Pause();
             StopAllCoroutines();
             StopAllCoroutines();
             videoPlayer.Stop();
             videoPlayer.Stop();
             videoPlayer.loopPointReached -= OnVideoEnded;
             videoPlayer.loopPointReached -= OnVideoEnded;
+            videoPlayer.targetTexture.Release();
             handle.Release();
             handle.Release();
             handle = null;
             handle = null;
             videoHandle.Release();
             videoHandle.Release();