From 1ab047b5fdd933c38ba0519ec2e83a44512ea8d7 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 26 三月 2026 17:46:11 +0800
Subject: [PATCH] webgl代码合并 1

---
 Main/Component/UI/Effect/BattleEffectPlayer.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Main/Component/UI/Effect/BattleEffectPlayer.cs b/Main/Component/UI/Effect/BattleEffectPlayer.cs
index 5f585de..441359e 100644
--- a/Main/Component/UI/Effect/BattleEffectPlayer.cs
+++ b/Main/Component/UI/Effect/BattleEffectPlayer.cs
@@ -62,7 +62,7 @@
 
     private void OnAlphaChanged()
     {
-        if (spineComp != null)
+        if (spineComp != null && spineComp.Skeleton != null)
         {
             var skeleton = spineComp.Skeleton;
             skeleton.A = Alpha;
@@ -267,7 +267,7 @@
         }
     }
 
-    public virtual async void Play(bool showLog = true)
+    public virtual async UniTask Play(bool showLog = true)
     {
         if (!isInit)
         {

--
Gitblit v1.8.0