Merge remote-tracking branch 'origin/main'

This commit is contained in:
SpoodyTheOne 2024-02-04 11:48:50 +01:00
commit f320603800
4 changed files with 174 additions and 28 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@ public class EnemyPathFinding : MonoBehaviour
private void Rumble() private void Rumble()
{ {
RumbleManager.StartRumble(-1, 0.5f, 0.5f, 0.25f); RumbleManager.StartRumble(-1, 0.5f, 0.5f, 0.25f);
CameraShaker.ShakecShake(0.125f, 0.25f); CameraShaker.ShakecShake(0.1f, 0.25f);
} }
private void Update() private void Update()

View File

@ -87,7 +87,7 @@ public class HealthComponent : MonoBehaviour, ISquezeDamageReceiver
if (bloodRegen) if (bloodRegen)
{ {
PlayerInput playerInput = GetComponent<PlayerInput>(); PlayerInput playerInput = GetComponent<PlayerInput>();
float bloodAccumalted = playerInput.PlayerNum == 1 ? BloodComputeShader.Instance.mop1Clean : BloodComputeShader.Instance.mop2Clean; float bloodAccumalted = playerInput.PlayerNum == 0 ? BloodComputeShader.Instance.mop1Clean : BloodComputeShader.Instance.mop2Clean;
TakeDamage(-bloodAccumalted / regen); TakeDamage(-bloodAccumalted / regen);
} }