2024-09-23 15:05:34 +08:00
|
|
|
|
using AOT.PostProcess.BlackArea;
|
|
|
|
|
|
using Gameplay.Area;
|
2024-10-30 19:17:08 +08:00
|
|
|
|
using Gameplay.Common;
|
2024-07-12 13:07:36 +08:00
|
|
|
|
using Gameplay.PostProcess.BlackArea;
|
|
|
|
|
|
namespace Gameplay.Buff
|
|
|
|
|
|
{
|
|
|
|
|
|
public class BuffLightUpDuring : BaseBuff
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
protected override void _OnLogicUpdate(float dt)
|
|
|
|
|
|
{
|
|
|
|
|
|
base._OnLogicUpdate(dt);
|
|
|
|
|
|
|
|
|
|
|
|
var centerCellIndex = owner.transData.cellIndex;
|
|
|
|
|
|
var lightUpDistance = _TryGetIntParam(0);
|
|
|
|
|
|
var allCellIndex = AreaManager.instance.GetCellIndexsAround(centerCellIndex, lightUpDistance);
|
|
|
|
|
|
for (int i = 0; i < allCellIndex.Count; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
var cellIndex = allCellIndex[i];
|
2024-10-30 19:17:08 +08:00
|
|
|
|
BlackAreaManager.instance.LightUpCell(cellIndex, CodeDefine.Fight.LIGHT_UP_TIME);
|
2024-07-12 13:07:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|