private void OnCollisionEnter2D(Collision2D other) { if (other.gameObject.tag == "Player") { healthManager.GiveHealth(); Destroy(this.gameObject); } }