PawnController.InternalMoveContinueWith C# (CSharp) Method

InternalMoveContinueWith() private method

private InternalMoveContinueWith ( ContinueWith realContinueWith ) : void
realContinueWith ContinueWith
return void
    private void InternalMoveContinueWith(ContinueWith realContinueWith)
    {
        ++currentPathToWalkIndex;
        if (currentPathToWalk.Length <= currentPathToWalkIndex)
        {
            if (isMoving)
            {
                isMoving = false;
                animator.SetTrigger("WalkEnd");
            }
            if (realContinueWith != null)
                realContinueWith();
            return;
        }
        MoveToInternal(currentPathToWalk[currentPathToWalkIndex], () =>
        {
            InternalMoveContinueWith(realContinueWith);
        });
    }