Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     _nmAgent = GetComponent<NavMeshAgent>();
     _nmAgent.speed = MaxSpeed;
     _boid = GetComponent<Boid>();
 }
 protected void FindBoid()
 {
     Boid = gameObject.GetComponent<Boid>();
 }
Beispiel #3
0
 protected virtual void Start()
 {
     Boid = GetComponent<Boid>();
     Boid.MaxSpeed += Speed;
     Boid.MaxForce += Speed;
 }