G2M_SessionDisconnectHandler.cs 349 B

1234567891011121314
  1. using ETModel;
  2. namespace ETHotfix
  3. {
  4. [ActorMessageHandler]
  5. public class G2M_SessionDisconnectHandler : AMActorLocationHandler<Unit, G2M_SessionDisconnect>
  6. {
  7. protected override async ETTask Run(Unit unit, G2M_SessionDisconnect message)
  8. {
  9. unit.GetComponent<UnitGateComponent>().IsDisconnect = true;
  10. await ETTask.CompletedTask;
  11. }
  12. }
  13. }