void Hurt(GameObject blockHitPlayer) { AudioSource.PlayClipAtPoint(wrongColor, transform.position); HeartContainer hearts = heartContainer.GetComponent <HeartContainer>(); hearts.isHurt[hearts.playerLivesLeft - 1] = true; PlayerPrefs.SetFloat("totalTimesHit", PlayerPrefs.GetFloat("totalTimesHit") + 1); Shake.WrongColor(); blockHitPlayer.GetComponent <ChildBlock>().targetColor = Color.black; blockHitPlayer.transform.parent.GetComponent <ParentBlockController>().BreakAway(); fadder.GetComponent <Image>().color = Color.white * .8f; iOSHapticFeedback.Instance.Trigger((iOSHapticFeedback.iOSFeedbackType) 5); }