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

@@ -6,7 +6,6 @@ using UnityEngine.InputSystem;
public class Punch : MonoBehaviour
{
public bool cancelable = true;
public static event System.Action<GameObject> OnPlayerPunched;
[SerializeField] private BoxCollider2D hurtbox;
@@ -31,7 +30,7 @@ public class Punch : MonoBehaviour
GetComponent<AnimationPlayer>().Punch();
DisableCancellation();
GetComponent<PlayerMovement>().maxSpeedOverride = 1f;
OnPlayerPunched?.Invoke(gameObject);
//OnPlayerPunched?.Invoke(gameObject);
}
public void EnableHurtbox()