private void OnCollisionEnter2D(Collision2D collision)
{
if (collision.gameObject.tag == "Ground")
ground = true;
}
private void OnCollisionExit2D(Collision2D collision)
{
if (collision.gameObject.tag == "Ground")
ground = false;
}