示例#1
0
    protected void MoveToGrid(Vector2Int grid)
    {
        var position = MapHelper.GridToScenePoint(grid);

        GoParent.transform.forward = position - GoParent.transform.position;
        GoParent.transform.DOMove(position, MoveTimePreGrid).OnComplete(OnMoveToGridFinish);
        Agent.DoMove();
        MoveTargetGrid = grid;
    }