private void OnHoldGameObject(GameObject targetGameObject) { PlaySound playSound = targetGameObject.GetComponent <PlaySound>(); if (playSound != null) { playSound.OnHold(); } }