private void Damage(float[] attackDetails) { if (_PC.GetDashState()) { return; } int direction; SoundManager.Instance.PlaySound(_receiveDamageSound); _playerStats.DecreaseHealth(attackDetails[0]); if (attackDetails[1] < transform.position.x) { direction = 1; } else { direction = -1; } _PC.knockback(direction); }