fix blod regen
This commit is contained in:
parent
e47966e8e1
commit
b228433eaa
|
@ -87,7 +87,7 @@ public class HealthComponent : MonoBehaviour, ISquezeDamageReceiver
|
|||
if (bloodRegen)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue