diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs
index d142408d..02f48ab6 100644
--- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs
+++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs
@@ -1,6 +1,8 @@
using System.Collections;
using System.Collections.Generic;
using Coffee.UIExtensions;
+using Cysharp.Threading.Tasks;
+using DG.Tweening;
using GameConfig.giftConfig;
using TEngine;
using TMPro;
@@ -268,6 +270,31 @@ namespace GameLogic
// 加载无敌特效
LoadEffectGo(giftConfig, buff);
}
+ else
+ {
+ // 加载手指移动爆点特效
+ var eGo = GameModule.Resource.LoadGameObject("Shou");
+ eGo.transform.SetParent(m_rectCar.transform);
+ eGo.transform.localPosition = new Vector3(500, 0, 0);
+ eGo.transform.localScale = Vector3.one;
+ eGo.gameObject.SetActive(true);
+
+ eGo.transform.DOLocalMoveX(0, 0.5f).OnComplete(async () =>
+ {
+ // 特效播放完毕后销毁
+ GameObject.Destroy(eGo);
+ // 生成爆点
+ var effectGo = GameModule.Resource.LoadGameObject("Shou_Boom");
+ effectGo.transform.SetParent(m_rectCar.transform);
+ effectGo.transform.localPosition = Vector3.zero;
+ effectGo.transform.localScale = Vector3.one;
+ effectGo.gameObject.SetActive(true);
+ await UniTask.Delay(2000);
+ // 销毁爆点特效
+ GameObject.Destroy(effectGo);
+ });
+
+ }
}
else if (buff.m_Id == 2)
{
diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs
index 2485b8da..bf9f8074 100644
--- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs
+++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs
@@ -299,20 +299,17 @@ namespace GameLogic
///
/// 甜甜圈特效
///
- private void TtqEffectCreateFunc(GiftConfig giftConfig)
+ private async void TtqEffectCreateFunc(GiftConfig giftConfig)
{
- GameModule.Timer.AddTimer(async (e) =>
- {
- var m_Ego = GameModule.Resource.LoadGameObject("TTQ01");
- m_Ego.transform.SetParent(this.transform);
- m_Ego.transform.localPosition = Vector3.zero;
- m_Ego.transform.localScale = Vector3.one;
- //m_Ego.transform.GetComponent().scale = 1;
- // 设置时间消失
- await UniTask.Delay(giftConfig.TimerLen * 1000);
- GameObject.Destroy(m_Ego);
- }, giftConfig.TimerLen);
+ var m_Ego = GameModule.Resource.LoadGameObject("TTQ01");
+ m_Ego.transform.SetParent(this.transform);
+ m_Ego.transform.localPosition = Vector3.zero;
+ m_Ego.transform.localScale = Vector3.one;
+
+ // 设置时间消失
+ await UniTask.Delay(giftConfig.TimerLen * 1000);
+ GameObject.Destroy(m_Ego);
}
private async void AddGiftMessageFunc(UnitPlayerData unitPlayerData, GiftConfig giftConfig, int num)
@@ -394,7 +391,7 @@ namespace GameLogic
// Set the target positions for the HItemActors based on their new order
for (int i = 0; i < hItemActors.Count; i++)
{
- var hItemActor = hItemActors[i].actor;
+ var hItemActor = hItemActors[i].actor;
hItemActor.m_Index = i;
var rectTransform = hItemActor.gameObject.GetComponent();
Vector2 targetPosition = new Vector2(0, 435 - i * (109 - 5f));