Hat update

This commit is contained in:
RochesterX
2025-03-17 18:20:03 -04:00
parent 153104636d
commit c9519de7f0
9 changed files with 577 additions and 490 deletions

View File

@@ -17,6 +17,8 @@ public class Damageable : MonoBehaviour
public bool dying = false;
public event System.Action<GameObject> OnPlayerPunched;
private void Start()
{
animator = GetComponent<Animator>();
@@ -46,6 +48,9 @@ public class Damageable : MonoBehaviour
float actualForce = damageSource.GetComponent<Damageable>().force;
Block blockComponent = GetComponent<Block>();
GetComponentInChildren<UseItem>().DropItem();
if (blockComponent != null && blockComponent.blocking)
{
if (blockComponent.IsParrying())
@@ -92,9 +97,10 @@ public class Damageable : MonoBehaviour
}
private void Die()
{;
{
if (GameManager.Instance != null)
{
GetComponent<UseItem>().DropItem();
animator.SetBool("die", true);
dying = true;
}