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

public class KillPlayer : MonoBehaviour
{
    void OnCollisionEnter2D(Collision2D collision)
    {
        if (collision.gameObject.tag != "Player")
            return;

        PlayerController controller = collision.gameObject.GetComponent<PlayerController>();

        controller.Die();
    }
}
