private void OnTriggerEnter(Collider other) { if (!pickedUp) { pickedUp = true; status playerStatus = other.GetComponent <status>(); if (playerStatus != null) { playerStatus.heal(2f); source.Play(); StartCoroutine(DestroyBox()); } } }