Actor_TestHandler.cs 374 B

1234567891011121314151617
  1. using System.Threading.Tasks;
  2. using Model;
  3. namespace Hotfix
  4. {
  5. [ActorMessageHandler(AppType.Map)]
  6. public class Actor_TestHandler : AMActorHandler<Unit, Actor_Test>
  7. {
  8. protected override async Task<bool> Run(Unit unit, Actor_Test message)
  9. {
  10. Log.Info(message.Info);
  11. unit.GetComponent<UnitGateComponent>().GetActorProxy().Send(message);
  12. return true;
  13. }
  14. }
  15. }