void PerfectHit(Collider other) { iOSHapticFeedback.Instance.Trigger(iOSHapticFeedback.iOSFeedbackType.ImpactLight); PlayerStats.IncrementSodaCanCount(); PlayerStats.IncrementMultiplier(); PlayerStats.IncrementScore(); ui.CreateMotivationPopUp(PlayerStats.Multiplier); ui.CreateScorePopUp(PlayerStats.Multiplier * PlayerStats.Level); ui.CreateMoneyPopUp(); SodaCan sodaCan = other.GetComponentInParent <SodaCan>(); sodaCan.GetCrushed("Middle"); sodaCan.PlaySplash(); ui.CreateSplashEffect(sodaCan.splash.GetComponent <ParticleSystem>().main.startColor.color); hasCrushed = true; }