예제 #1
0
 /// <summary> Find the best MergeTarget to go after, closest target wins. </summary>
 private MergeBehavior GetBestTarget(Vector3 currentPosition)
 {
     return(_tracker.MinBy(other => (other.transform.position - currentPosition).sqrMagnitude));
 }