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

16 lines
400 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
namespace ET
{
[NumericWatcher(NumericType.PhyAtk)]
public class NumericWatcher_PhyAtk : INumericWatcher
{
public async ETTask Run(Entity entity, float old, float value)
{
2021-04-18 15:54:51 +08:00
if (!entity) return;
2021-04-08 20:09:59 +08:00
DelaySendSyncAttributeComponent.instance.Add(entity.As<Unit>(), NumericType.PhyAtk, value);
await ETTask.CompletedTask;
}
}
}