This commit is contained in:
RochesterX
2025-03-07 17:18:16 -05:00
parent 804483f3de
commit 2d97a35045
5 changed files with 174 additions and 4 deletions

View File

@@ -42,6 +42,8 @@ public class Damageable : MonoBehaviour
private void Damage(GameObject damageSource)
{
if (dying) return;
float actualForce = damageSource.GetComponent<Damageable>().force;
Block blockComponent = GetComponent<Block>();
if (blockComponent != null && blockComponent.blocking)