From 5333e6028dbf4eeeb387a7164c8220028fddc240 Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Sun, 7 May 2023 00:09:37 -0700 Subject: [PATCH] fix: Re-added projectiles deleting themselves when they hit the player --- Assets/Scripts/ProjectileBehavior.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/ProjectileBehavior.cs b/Assets/Scripts/ProjectileBehavior.cs index a47c0f2..9e93b2f 100644 --- a/Assets/Scripts/ProjectileBehavior.cs +++ b/Assets/Scripts/ProjectileBehavior.cs @@ -20,7 +20,7 @@ public class ProjectileBehavior : MonoBehaviour public void OnCollisionEnter2D(Collision2D col) { - if (col.gameObject.tag == "wall") + if (col.gameObject.tag == "wall" || col.gameObject.tag == "Player") { Explode(); }