From 84fba9533cc9a0f1a3400bbc3f9a36cca94a1fbc Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 26 十二月 2025 18:30:16 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/Component/UI/Effect/UIEffectPlayer.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/Main/Component/UI/Effect/UIEffectPlayer.cs b/Main/Component/UI/Effect/UIEffectPlayer.cs
index 345fe94..5d70f0f 100644
--- a/Main/Component/UI/Effect/UIEffectPlayer.cs
+++ b/Main/Component/UI/Effect/UIEffectPlayer.cs
@@ -24,7 +24,7 @@
     public void PlayByArrIndex(int index, bool showLog = true, bool closePMA = false)
     {
         var config = EffectConfig.Get(effectId);
-        playSpineAnimIndex = config.animIndex[index];
+        playSpineAnimIndex = index < config.animIndex.Length ? config.animIndex[index] : 0;
         PlayAsync(showLog, closePMA).Forget();
     }
 
@@ -49,4 +49,13 @@
         return effectPlayer;
     }
 
+
+	public void SetEnabled(bool isEnable)
+	{ 
+		if (spineComp == null)
+		{
+			return;
+		}
+		spineComp.enabled = isEnable;
+	}
 }

--
Gitblit v1.8.0