using ET.EventType; using System; using System.Collections.Generic; namespace ET { public class SyncAttributeEvent : AEvent { public override async ETTask Run(SyncAttribute args) { var unit = args.unit; var syncUnitAttribute = new M2C_SyncUnitAttribute { UnitId = unit.Id, NumericType = args.numericType, Value = args.value }; unit.GetComponent()?.BrocastInterval(syncUnitAttribute); await ETTask.CompletedTask; } } }