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

public class releaseMe : MonoBehaviour {

    public KeyCode releaseButton;

    Rigidbody rigid;

	// Use this for initialization
	void Start () {
        rigid = GetComponent<Rigidbody>();
	}
	
	// Update is called once per frame
	void Update () {
        if (Input.GetKey(releaseButton) && rigid.isKinematic)
        {
            rigid.isKinematic = false;
        }
		
	}
}
