zhangyuqian преди 1 година
родител
ревизия
fb791e5d61
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxVideoView.cs

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

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