Example #1
0
 public void Act()
 {
     if (Vector3.Distance(transform.position, ball.position) < config.kickableRange * 1.25f || isOptimalBallCharger)
     {
         utils.MoveToAndKickBall();
     }
     else
     {
         utils.PositionToReceiveBall(currentTargetPosition.x, currentTargetPosition.z);
     }
     stepsSincePositionWrite++;
     stepsSinceTargetWrite++;
 }