the scarlet police have me at gun point

This commit is contained in:
Sylvia 2026-03-06 02:22:51 -08:00
parent b964c9b617
commit d6da52fd69
54 changed files with 674 additions and 55 deletions

View file

@ -4,6 +4,7 @@ using UnityEngine;
public class Projectile : MonoBehaviour
{
public Entity owner;
public float damage;
public float speed;
private int currentPierced;
@ -30,7 +31,7 @@ public class Projectile : MonoBehaviour
{
if (!other.CompareTag(tag) && other.TryGetComponent(out Entity isEntity))
{
isEntity.TakeDamage(damage);
isEntity.TakeDamage(damage, owner);
currentPierced++;
if (currentPierced > pierceAmount)
{