private void OnTriggerEnter2D(Collider2D collision) { if (justSpawned || didDamage) { return; } if (collision.CompareTag("Player")) { player.Damage(damage); didDamage = true; spike.Die(); } }