zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Game/Event/OnDisposeUnitEvent.cs

21 lines
561 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
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
};
var unit = MapUnitComponent.Instance.Get(args.Actor_UnitId);
unit.GetComponent<BrocastComponent>().BrocastInterval(pproto);
await ETTask.CompletedTask;
}
}
}