]> git.lizzy.rs Git - SuperMouseAdventure.git/blob - 2DGame/Assets/Scripts/Level_Elements/Thorn.cs
561b0712adbdd38d2e6f5af6e913cfaa7ea8b56a
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / Level_Elements / Thorn.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4
5 public class Thorn : MonoBehaviour
6 {
7     private void OnTriggerEnter2D(Collider2D collision)
8     {
9         if (collision.gameObject.CompareTag("Bullet"))
10         {
11             Destroy(collision.gameObject);
12             gameObject.SetActive(false);
13         }
14     }
15 }