moved stuff to a different entity script

This commit is contained in:
Sylvia 2026-06-09 18:46:33 -07:00
parent f4344c4700
commit a0bfc600ef
14 changed files with 497 additions and 189 deletions

View file

@ -25,7 +25,7 @@ public class Projectile : MonoBehaviour
{
if (!other.CompareTag(tag) && other.TryGetComponent(out Entity isEntity))
{
isEntity.TakeDamage(damage);
isEntity.stats.TakeDamage(damage);
currentPierced++;
if (currentPierced > pierceAmount)
{