Exemplo n.º 1
0
 private void Start()
 {
     Velocity     = Random.onUnitSphere * Settings.MaxSpeed;
     WanderTarget = transform.position;
     Collider     = GetComponent <SphereCollider>();
     GetComponent <Health>().onDeath += () =>
     {
         BeeSound.Stop();
         BoidsManager.DeleteBoid(this);
     };
 }