fix: Re-added projectiles deleting themselves when they hit the player

This commit is contained in:
Nicholas Novak 2023-05-07 00:09:37 -07:00
parent f5beaf0fe9
commit 5333e6028d

View File

@ -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();
}