using ET.EventType; using ET; using System; using System.Collections.Generic; namespace ET { public class PathfindingResultEvent : AEvent_Sync { public override void Run(PathfindingResult args) { Unit unit = args.unit; UnitPathComponent unitPathComponent = unit.GetComponent(); unitPathComponent.StartMove(args.currPos,args.targetPos,args.speed).Coroutine(); } } }