void OnTriggerEnter(Collider other) { // Add Feedback // Sound, particle, etc. // If what this pickup is touched by is NOT the player, then exit out and do nothing. if (other.tag != "Player") { return; } HPScript hp = other.GetComponent <HPScript>(); hp.Apply(Value); if (TurnOff) { gameObject.SetActive(false); Mesh.SetActive(false); } }