C2M_StopHandler.cs 296 B

123456789101112131415
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace ET
  4. {
  5. [ActorMessageHandler]
  6. public class C2M_StopHandler : AMActorLocationHandler<Unit, C2M_Stop>
  7. {
  8. protected override async ETTask Run(Unit unit, C2M_Stop message)
  9. {
  10. unit.Stop(0);
  11. await ETTask.CompletedTask;
  12. }
  13. }
  14. }