Files
JourneyProject/Assets/Scripts/LungeHitbox.cs
Garrett Kaiser ef830fd4ac Boss Hurts PLayer
2026-01-15 14:54:58 -08:00

30 lines
578 B
C#

using UnityEngine;
public class LungeHitbox : MonoBehaviour
{
public PlayerMovement playerMovement;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
Debug.Log("Hit Player");
playerMovement.HP -= 1.5f;
}
else{
Debug.Log("Failed");
}
}
}