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