1
This commit is contained in:
parent
939132d1e1
commit
5ff7dec7fb
@ -670,19 +670,58 @@ namespace GameLogic
|
||||
actor.AddBuff(m_Buff, unitPlayerData, giftConfig);
|
||||
|
||||
|
||||
// 给其他赛道天降流星雨
|
||||
// 这里只处理前十,排除自己
|
||||
//// 给其他赛道天降流星雨
|
||||
//foreach (var item in m_DicTeamList)
|
||||
//{
|
||||
// if (item.Value != actor)
|
||||
// {
|
||||
// await UniTask.Delay(500);
|
||||
// // 添加减速Buff
|
||||
// Buff m_Buff1 = new Buff();
|
||||
// m_Buff1.OnInit(giftConfig.Id, giftConfig.AddPower * num, giftConfig.TimerLen, giftConfig.AddGiftScore, num);
|
||||
// item.Value.AddBuff(m_Buff1, unitPlayerData, giftConfig);
|
||||
// }
|
||||
//}
|
||||
|
||||
List<ActorHItem> m_TempList = new List<ActorHItem>();
|
||||
|
||||
foreach (var item in m_DicTeamList)
|
||||
{
|
||||
if (item.Value != actor)
|
||||
//if (item.Value != actor)
|
||||
{
|
||||
await UniTask.Delay(500);
|
||||
// 添加减速Buff
|
||||
Buff m_Buff1 = new Buff();
|
||||
m_Buff1.OnInit(giftConfig.Id, giftConfig.AddPower * num, giftConfig.TimerLen, giftConfig.AddGiftScore, num);
|
||||
item.Value.AddBuff(m_Buff1, unitPlayerData, giftConfig);
|
||||
m_TempList.Add(item.Value);
|
||||
}
|
||||
}
|
||||
|
||||
// 排序
|
||||
m_TempList.Sort((a, b) =>
|
||||
{
|
||||
if (a.GetAllPower() > b.GetAllPower())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
});
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
if (m_TempList[i] == actor)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
await UniTask.Delay(500);
|
||||
// 添加减速Buff
|
||||
Buff m_Buff1 = new Buff();
|
||||
m_Buff1.OnInit(giftConfig.Id, giftConfig.AddPower * num, giftConfig.TimerLen, giftConfig.AddGiftScore, num);
|
||||
m_TempList[i].AddBuff(m_Buff1, unitPlayerData, giftConfig);
|
||||
}
|
||||
|
||||
|
||||
// 告知UI,创建全屏特效
|
||||
GameEvent.Send(EventConts.TtqEffectCreate, giftConfig);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user