//Use for grabbing script and component references
 void Awake()
 {
     joint = GetComponent<DistanceJoint2D>();
     joint.enabled = false;
     lineRend = GetComponent<LineRenderer>();
     hThrow = GetComponent<HookThrow>();
 }
    // Use this for initialization
    void Start()
    {
        startRotation = gameObject.transform.rotation;
        //Gets animator component
        anim = gameObject.GetComponent<Animator>();
        //Gets 2d rigidbody
        rb2d = gameObject.GetComponent<Rigidbody2D>();
        //Gets reference to hook throw script
        hookTh = gameObject.GetComponent<HookThrow>();

        if(Application.loadedLevel > 0)
        {
            //InvokeRepeating("LerpRotatePlayer", Time.deltaTime, Time.deltaTime);
        }
    }