Point2 UnitMove() { BlockPointGetter blockData = RightClickRayShot.GetMouseRayHitObject <BlockPointGetter>(KeyCode.Mouse0); if (blockData != null && (canMovePoints.Contains(blockData.point))) { unit.MoveToPoint(blockData.point); return(blockData.point); } return(Point2.Empty); }
public bool Update() { BlockPointGetter blockData = RightClickRayShot.GetMouseRayHitObject <BlockPointGetter>(KeyCode.Mouse0); if (blockData != null && (canMovePoints.Contains(blockData.point))) { unit.MoveToPoint(blockData.point); return(true); } return(false); }