From bc1cb6da854cb2e9144f10ed55330a537ecdca16 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 三月 2026 14:35:57 +0800
Subject: [PATCH] 466 h5版本 资源规则修改 打包修改(未完成 勿拉取)

---
 Main/System/Video/VideoManager.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Main/System/Video/VideoManager.cs b/Main/System/Video/VideoManager.cs
index 18f7ac3..b06b74d 100644
--- a/Main/System/Video/VideoManager.cs
+++ b/Main/System/Video/VideoManager.cs
@@ -2,6 +2,7 @@
 
 using System;
 using System.Collections.Generic;
+using Cysharp.Threading.Tasks;
 using UnityEngine;
 
 public class VideoManager : Singleton<VideoManager>
@@ -14,8 +15,10 @@
 
     public void Init()
     {
-        GameObject uiVideoPrefab = UILoader.LoadPrefab("UIVideoPlayer");
-        uiVideoPool = GameObjectPoolManager.Instance.GetPool(uiVideoPrefab);
+        UILoader.LoadPrefabAsync("UIVideoPlayer").ContinueWith(prefab =>
+        {
+            uiVideoPool = GameObjectPoolManager.Instance.GetPool(prefab);
+        }).Forget();
     }
 
     public void Release()

--
Gitblit v1.8.0