14 lines
359 B
C#
14 lines
359 B
C#
|
namespace ET
|
|||
|
{
|
|||
|
[NumericWatcher(NumericType.Spi)]
|
|||
|
public class NumericWatcher_Spi : INumericWatcher
|
|||
|
{
|
|||
|
public async ETTask Run(Entity entity, float old, float value)
|
|||
|
{
|
|||
|
|
|||
|
DelaySendSyncAttributeComponent.instance.Add(entity.As<Unit>(), NumericType.Spi, value);
|
|||
|
await ETTask.CompletedTask;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|