CTT/Server/Hotfix/Module/Numeric/NumericWatcher_Nphyi.cs

15 lines
425 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
namespace ET
{
[NumericWatcher(NumericType.Nphyi)]
public class NumericWatcher_Nphyi : INumericWatcher
{
public async ETTask Run(Entity entity, float old, float value)
{
2021-04-18 15:54:51 +08:00
if (!entity) return;
2021-04-11 19:50:39 +08:00
Unit unit = entity.As<Unit>();
2021-04-08 20:09:59 +08:00
DelaySendSyncAttributeComponent.instance.Add(unit, NumericType.Nphyi, value);
await ETTask.CompletedTask;
}
}
}