From 0fa617a09eedf6bdb25eda55fac1d3344859fd93 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 31 三月 2026 19:46:31 +0800
Subject: [PATCH] webgl

---
 Main/System/Video/UIVideoPlayer.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Main/System/Video/UIVideoPlayer.cs b/Main/System/Video/UIVideoPlayer.cs
index 50f2751..1216615 100644
--- a/Main/System/Video/UIVideoPlayer.cs
+++ b/Main/System/Video/UIVideoPlayer.cs
@@ -63,6 +63,7 @@
 
         // 閫氳繃 ResManager 鍔犺浇 VideoClip 璧勬簮锛堟敮鎸� AB 鎵撳寘锛�
         _loadedClip = await ResManager.Instance.LoadAssetAsync<VideoClip>(directory, videoName, false);
+        if (this == null) return;
         
         // 妫�鏌ユ槸鍚﹀湪鍔犺浇杩囩▼涓鍙栨秷
         if (!_isLoading)
@@ -173,6 +174,7 @@
 
         // 閫氳繃 ResManager 鍔犺浇 VideoClip 璧勬簮锛堟敮鎸� AB 鎵撳寘锛�
         _loadedClip = await ResManager.Instance.LoadAssetAsync<VideoClip>(directory, videoName, false);
+        if (this == null) return;
         
         // 妫�鏌ユ槸鍚﹀湪鍔犺浇杩囩▼涓鍙栨秷
         if (!_isLoading)

--
Gitblit v1.8.0