fix: Re-added projectiles deleting themselves when they hit the player
This commit is contained in:
parent
f5beaf0fe9
commit
5333e6028d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user