Browse Source

修复BUG -2

胡佳骏 1 year ago
parent
commit
1bc74b8147

+ 1 - 1
Assets/HotUpdate/Scripts/Scripts/JinRuRenwu.cs

@@ -272,7 +272,7 @@ public class JinRuRenwu : WindowSingleton<JinRuRenwu>
                         else
                         {
 
-                            Image2BT.SetActive(false);
+                            Image2BT.SetActive(true);
                             Image2.GetComponent<RenWuTypeWindow>().updateData(rwitem.resources[i]);
                         }
                         img++;

+ 4 - 2
Assets/HotUpdate/Scripts/Scripts/Project/XunJian/进入任务/RenWuTypeWindow.cs

@@ -164,7 +164,8 @@ public class RenWuTypeWindow : MonoBehaviour
             // file.Delete();
             yield return new WaitForSeconds(0.02f);
             this.GetComponent<ShowVideoManager>().url = path;
-            this.GetComponent<ShowVideoManager>().playeVideo();
+            if(JinRuRenwu.Instance.Video.activeSelf)
+                this.GetComponent<ShowVideoManager>().playeVideo();
         }
         else
         {
@@ -177,7 +178,8 @@ public class RenWuTypeWindow : MonoBehaviour
             sw.Dispose();
             yield return new WaitForSeconds(0.02f);
             this.GetComponent<ShowVideoManager>().url = path;
-            this.GetComponent<ShowVideoManager>().playeVideo();
+            if (JinRuRenwu.Instance.Video.activeSelf)
+                this.GetComponent<ShowVideoManager>().playeVideo();
         }
 
     }