From 9e054a88434c9e1fc2c8c532d07fe02d7d077f10 Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Tue, 27 May 2025 20:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E4=BB=99=E5=A5=B3=E6=A3=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HotFix/GameLogic/Actor/ActorHItem.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index ff3df166..dd1daecf 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -262,6 +262,26 @@ namespace GameLogic // 龙卷风特效特殊处理 } + else if (buff.m_Id == 2) + { + // 红仙女棒的额外特殊处理 + var eGo = GameModule.Resource.LoadGameObject("HeShang"); + eGo.transform.SetParent(m_rectCar.transform); + eGo.transform.localPosition = new Vector3(-1500, 0, 0); + eGo.transform.localScale = Vector3.one; + eGo.gameObject.SetActive(true); + + eGo.transform.DOLocalMoveX(0, 4f).OnComplete(async () => + { + await UniTask.Delay(2000); + // 特效播放完毕后销毁 + GameObject.Destroy(eGo); + }); + + + //// 加载常规特效 + //LoadEffectGo(giftConfig, buff); + } else if (buff.m_Id == 4) { // 蓝仙女棒的额外特殊处理