From cd8f58670fa620c2ac0d50a3ce073bec6792bbaa Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Fri, 30 May 2025 17:38:51 +0800 Subject: [PATCH] 1 --- .../HotFix/GameLogic/Actor/ActorHItem.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index 564af4bb..91b757e4 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -493,6 +493,27 @@ namespace GameLogic } } + else if (buff.m_Id == 8) + { + // 蓝仙女棒的额外特殊处理 + var eGo = GameModule.Resource.LoadGameObject(giftConfig.EffectName); + eGo.transform.SetParent(m_rectCar.transform); + eGo.transform.localPosition = Vector3.zero; + eGo.transform.localScale = Vector3.one * giftConfig.EffectScale; + eGo.gameObject.SetActive(true); + eGo.transform.localPosition = new Vector3(-1500, 0, 0); + eGo.transform.DOLocalMoveX(0, 4f).OnComplete(async () => + { + await UniTask.Delay((giftConfig.TimerLen - 4) * 1000); + // 特效播放完毕后销毁 + GameObject.Destroy(eGo); + }); + } + else if (buff.m_Id == 9) + { + // 加载常规特效 + LoadEffectGo(giftConfig, buff); + } else if (buff.m_Id == 2) { // 红仙女棒的加速效果特殊处理,因为这个效果并不是加载特效,而是材质球上的材质开关