1
This commit is contained in:
parent
8a151fa360
commit
3cbd4a9ac9
@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Coffee.UIExtensions;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using DG.Tweening;
|
||||
@ -253,7 +254,7 @@ namespace GameLogic
|
||||
/// </summary>
|
||||
/// <param name="buff"></param>
|
||||
/// <param name="unitPlayerData"></param>
|
||||
public void AddBuff(Buff buff, UnitPlayerData unitPlayerData, GiftConfig giftConfig)
|
||||
public async Task AddBuff(Buff buff, UnitPlayerData unitPlayerData, GiftConfig giftConfig)
|
||||
{
|
||||
|
||||
//Log.Debug("获得Buff " + buff.m_Id);
|
||||
@ -320,7 +321,9 @@ namespace GameLogic
|
||||
}
|
||||
else if (buff.m_Id == 3)
|
||||
{
|
||||
// 加载手指移动爆点特效
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
var eGo = GameModule.Resource.LoadGameObject("HBC");
|
||||
eGo.transform.SetParent(m_rectCar.transform);
|
||||
eGo.transform.localPosition = new Vector3(500, 0, 0);
|
||||
@ -340,6 +343,9 @@ namespace GameLogic
|
||||
// 销毁爆点特效
|
||||
GameObject.Destroy(effectGo);
|
||||
});
|
||||
|
||||
await UniTask.Delay(500); // 等待一段时间再生成下一个特效
|
||||
}
|
||||
}
|
||||
else if (buff.m_Id == 4)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user