//This does not take much performance in because the pool array has a max amount of 10 objects. private void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag("DeadlyObstacle")) { if (_ObstaclePool.IsPoolObjectInPool(other.gameObject)) { _ObstaclePool.DeactivatePoolObject(other.gameObject); } } }