15 lines
419 B
C#
15 lines
419 B
C#
namespace ET
|
|
{
|
|
[NumericWatcher(NumericType.Dvo)]
|
|
public class NumericWatcher_Dvo : INumericWatcher
|
|
{
|
|
public async ETTask Run(Entity entity, float old, float value)
|
|
{
|
|
if (!entity) return;
|
|
Unit unit = entity.As<Unit>();
|
|
DelaySendSyncAttributeComponent.instance.Add(unit, NumericType.Dvo, value);
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
}
|