G2M_SessionDisconnectHandler.cs 367 B

123456789101112131415
  1. using System;
  2. using System.Threading.Tasks;
  3. using ETModel;
  4. namespace ETHotfix
  5. {
  6. [ActorMessageHandler(AppType.Map)]
  7. public class G2M_SessionDisconnectHandler : AMActorLocationHandler<Unit, G2M_SessionDisconnect>
  8. {
  9. protected override void Run(Unit unit, G2M_SessionDisconnect message)
  10. {
  11. unit.GetComponent<UnitGateComponent>().IsDisconnect = true;
  12. }
  13. }
  14. }