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

13 lines
362 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
namespace ET
{
[NumericWatcher(NumericType.Title)]
public class NumericWatcher_Title : INumericWatcher
{
public async ETTask Run(Entity entity, float old, float value)
{
DelaySendSyncAttributeComponent.instance.Add(entity.As<Unit>(), NumericType.Title, value);
await ETTask.CompletedTask;
}
}
}