private void OnTriggerEnter2D(Collider2D col) { if (col.CompareTag("Player")) { player.Damage(3); } }
private void OnTriggerEnter2D(Collider2D col) { if (col.CompareTag("Player")) { player.Damage(-3); Destroy(gameObject); } }