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