private void TouchManagerOnTap(object sender, EventArgs e) { if (_isTargeted && !_isHit) { _isHit = true; screamHitAudioPlayer.Play(_audioSource); _ragdollController.EnableRagdollEffect(); OnDied?.Invoke(this, gameObject.tag); } }
private void TouchManagerOnTap(object sender, EventArgs e) { if (_isTargeted && !_isHit) { _isHit = true; screamHitAudioPlayer.Play(_audioSource); _ragdollController.EnableRagdollEffect(); OnDied?.Invoke(this, gameObject.tag); } }