Exemplo n.º 1
0
 public void RemoveBoidFromManager()
 {
     if (mManager != null)
     {
         mManager.RemoveBoid(this);
     }
 }
Exemplo n.º 2
0
    private void KillTarget()
    {
        Hunger += 100;

        SoundManager.PlayAudio(SOUNDS.EAT_SOUND, 0.2f);

        KillCount++;

        BoidsManager.RemoveBoid(target.GetComponent <BoidsAgent>());

        target = null;
    }
Exemplo n.º 3
0
 private void OnDestroy()
 {
     BoidsManager.RemoveBoid(this);
 }