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

public class Ground_Check : MonoBehaviour {

    private Player_Master player;

    void Start()
    {
        player = gameObject.GetComponentInParent<Player_Master>();
    }

    void OnTriggerEnter2D (Collider2D col)
    {
        player.grounded = true;
    }

    void OnTriggerStay2D(Collider2D col)
    {
        player.grounded = true;
    }

    void OnTriggerExit2D(Collider2D col)
    {
        player.grounded = false;
    }


}
