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