예제 #1
0
    void Update()
    {
        if (boid.Arrive(target.transform.position))
        {
            Disappear?.Invoke();

            Destroy(gameObject);
        }
        else
        {
            boid.Step();
        }
    }
예제 #2
0
 public override Vector3 Calculate()
 {
     return(b.Arrive(tg.transform.position, 15f, 10f));
 }