You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
438 B
18 lines
438 B
3 years ago
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
[ActorMessageHandler]
|
||
|
public class C2M_PathfindingResultHandler : AMActorLocationHandler<Unit, C2M_PathfindingResult>
|
||
|
{
|
||
|
protected override async ETTask Run(Unit unit, C2M_PathfindingResult message)
|
||
|
{
|
||
|
Vector3 target = new Vector3(message.X, message.Y, message.Z);
|
||
|
|
||
|
unit.FindPathMoveToAsync(target).Coroutine();
|
||
|
|
||
|
await ETTask.CompletedTask;
|
||
|
}
|
||
|
}
|
||
|
}
|