Beispiel #1
0
 /// <summary>
 /// Sets the movement target and the target location. Note that the two may not be the same.
 /// The visual target can be out of bounds but the target location cannot.
 /// </summary>
 public void SetMoveTarget(Vector2 target)
 {
     moving = true;
     targetRenderer.transform.position = target;
     this.target = BoundsUtil.VerifyBounds(target, new Bounds2D(collider2d.bounds), field.MovementBounds);
 }