public void OnTriggerEnter(Collider other) { FlockManager.getListBot().Remove(other.gameObject.GetComponent <Bot>()); Destroy(other.gameObject); m_Target = FlockManager.getTarget(m_Agent).m_Target; }