public override Vector3 Target(float time) { while (true) { float dbest = Swarm.DistanceToNearest(current); if (dbest <= 0.5f) { currentValid = false; } if (currentValid) { break; } NewTarget(); currentValid = true; } return(current); }
public override Vector3 Target(float time) { while (true) { float dbest = Swarm.DistanceToNearest(current); if (dbest <= 0.5f) { currentValid = false; } if (currentValid) { break; } NewTarget(); currentValid = true; } return(current); }