public override void Collision(Collision2D other) { ThePlayer.DeactivateRush(); if (other.collider.name == "StalObject") { other.collider.GetComponentInParent <Stalactite>().Crack(); } if (ThePlayer.ActivateShield()) { ThePlayer.PlaySound(ClumsyAudioControl.PlayerSounds.Collision); // TODO sounds } else { if (other.collider.name == "StalObject") { GameData.Instance.Data.Stats.ToothDeaths++; } else { //Level.Stats.RockDeaths++; // TODO check for other objects } ThePlayer.PlaySound(ClumsyAudioControl.PlayerSounds.Collision); ThePlayer.Die(); } }