21 lines
561 B
C#
21 lines
561 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
|
|||
|
};
|
|||
|
var unit = MapUnitComponent.Instance.Get(args.Actor_UnitId);
|
|||
|
unit.GetComponent<BrocastComponent>().BrocastInterval(pproto);
|
|||
|
await ETTask.CompletedTask;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|