Beispiel #1
0
 public void SetStartTarget(Circle newTarget, float startSpeed, float startDirection, float newAngularPosition)
 {
     ChangeSpeed(startSpeed);
     target = newTarget;
     smoothCamera.SetTargetAndColor(target.transform, target.color);
     deviationFromTargetRadius = 0f;
     angularPositionRadians    = newAngularPosition;
     transform.position        = target.transform.position +
                                 PolarCoordinateSystem.GetPosition(angularPositionRadians, target.radius);
     direction     = startDirection;
     movingAllowed = true;
 }