void Update() { if (boid.Arrive(target.transform.position)) { Disappear?.Invoke(); Destroy(gameObject); } else { boid.Step(); } }
public override Vector3 Calculate() { return(b.Arrive(tg.transform.position, 15f, 10f)); }