the scarlet police have me at gun point
This commit is contained in:
parent
b964c9b617
commit
d6da52fd69
54 changed files with 674 additions and 55 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue