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