private void MouseInputReceiver_OnButtonDown(int buttonPressed) { currentGrabbable = raycastHit.collider.GetComponentInParent <GrabbableObject>(); if (currentGrabbable != null) { currentGrabbable.OnButtonDown(buttonPressed); } if (raycastHit.collider.isTrigger) { SoundSource currentSoundSource = raycastHit.collider.GetComponentInParent <SoundSource>(); if (currentSoundSource != null) { currentSoundSource.OnButtonDown(buttonPressed); } } }