using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ThingsThatDamage : MonoBehaviour
{

    public int damageAmount = 1;

    private void OnTriggerEnter2D(Collider2D other)
    {
        if(other.tag == "Enemy")
        {
            other.GetComponent<EnemyHealthController>().DamageEnemy(damageAmount);

        }


    }
}
