private void OnTriggerEnter(Collider other) { if (gate) { if (!other.CompareTag("Assault")) { return; } if (snakeTail.snakePart.Count > ID) { snakeTail.DestroyParts(ID, true); gate = false; } } }