CTT/Server/Hotfix/Game/Event/OnDisposeUnitEvent.cs

21 lines
562 B
C#

using ET.EventType;
using System;
using System.Collections.Generic;
namespace ET
{
public class OnDisposeUnitEvent : AEvent<OnDisposeUnit>
{
public override async ETTask Run(OnDisposeUnit args)
{
M2C_DisposeMapMonster pproto = new M2C_DisposeMapMonster
{
Id = args.unitId
};
Unit unit = MapUnitComponent.Instance.Get(args.Actor_UnitId);
unit.GetComponent<BrocastComponent>().BrocastInterval(pproto);
await ETTask.CompletedTask;
}
}
}