void OnTriggerEnter2D(Collider2D other) { //Check the provided Collider2D parameter other to see if it is tagged "PickUp", if it is... if (other.gameObject.CompareTag("Cherry")) { //Debug.Log("Starting coin Script"); Health = Health + 20; enemycombat.HealthVal(Health); cherrypick.Play(); other.gameObject.SetActive(false); Health = 0; } }