private void OnCollisionEnter(Collision collision) { if (collision.collider.tag == "Player") { AddNewPoint(); explosion.transform.position = transform.position; explosion.Play(); if (core.FullHP()) { bedHp.ChangeHp(2); } else { core.ChangeHp(2); } Destroy(gameObject); Debug.Log("Health picked up"); } }