From 61b188e1d59af9a1e3b4f005bd4b9211b2db97d8 Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期四, 09 十月 2025 15:46:31 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts --- Main/Component/UI/Effect/UIEffectPlayer.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Main/Component/UI/Effect/UIEffectPlayer.cs b/Main/Component/UI/Effect/UIEffectPlayer.cs index 37254a2..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(); } -- Gitblit v1.8.0