public void OnTriggerEnter(Collider other) { Debug.Log("Triggered"); PetController pc = other.gameObject.GetComponentInChildren <PetController>(); if (pc != null) { pc.AppeaseWithGift(offeringType); offeringDisplay.SetActive(true); enabled = false; GameObject.Destroy(this.gameObject); } }