Beispiel #1
0
    private void OnFinishPathDrawing(Path path)
    {
        if (teamId == path.TeamId)
        {
            mover.SetPath(path.KeyPoints);
        }

        if (mover.HasPath())
        {
            Action reachPathEndCallback = animations.PlayIdleAnimation;
            mover.StartMoveAlongPath(reachPathEndCallback);
            mover.ToggleRotationalPathFollowing(true);
            animations.PlayMoveAnimation();
        }
    }